@@ -31,6 +31,7 @@ import {
3131 parseEmojiAvatarDataUrl ,
3232} from "@/features/profile/ui/ProfileAvatarEditor" ;
3333import { cn } from "@/shared/lib/cn" ;
34+ import { Button } from "@/shared/ui/button" ;
3435import { Input } from "@/shared/ui/input" ;
3536import { Spinner } from "@/shared/ui/spinner" ;
3637import { Textarea } from "@/shared/ui/textarea" ;
@@ -954,36 +955,31 @@ export function ProfileSettingsCard({
954955 </ div >
955956 </ div >
956957
957- < div className = "mt-8" data-testid = "settings-signout" >
958- < SettingsSectionHeader
959- title = "Sign out"
960- description = "Removes your identity key and all local app data from this device. Back up your private key (nsec) before proceeding — this cannot be undone."
961- />
962- < div className = "overflow-hidden rounded-xl border border-destructive/20 bg-background/70 shadow-xs" >
963- < div className = "flex items-center justify-between gap-4 px-4 py-3" >
964- < div className = "min-w-0 space-y-1" >
965- < p className = "text-sm font-medium" > Clear data and sign out</ p >
966- < p className = "text-sm text-muted-foreground" >
967- Wipes the keychain, agent settings, and app cache, then
968- relaunches Buzz into first-run setup.
969- </ p >
970- </ div >
971- < button
972- className = "inline-flex shrink-0 items-center gap-1.5 rounded-full border border-destructive/30 bg-destructive/5 px-3 py-1.5 text-sm font-medium text-destructive transition-colors hover:bg-destructive/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-destructive focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
973- data-testid = "signout-open-dialog"
974- disabled = { isSignOutPending }
975- onClick = { ( ) => setIsSignOutOpen ( true ) }
976- type = "button"
977- >
978- { isSignOutPending ? (
979- < Spinner
980- aria-label = "Signing out"
981- className = "h-4 w-4 border-2"
982- />
983- ) : null }
984- { isSignOutPending ? "Signing out…" : "Sign Out" }
985- </ button >
958+ < div
959+ className = "mt-8 border-t border-border/60 pb-6 pt-5"
960+ data-testid = "settings-signout"
961+ >
962+ < div className = "flex items-center justify-between gap-4 px-1" >
963+ < div className = "min-w-0 space-y-1" >
964+ < h2 className = "text-sm font-medium" > Sign out</ h2 >
965+ < p className = "text-sm text-muted-foreground" >
966+ Removes your identity key and all local app data from this device.
967+ Back up your private key (nsec) first — this cannot be undone.
968+ </ p >
986969 </ div >
970+ < Button
971+ className = "shrink-0"
972+ data-testid = "signout-open-dialog"
973+ disabled = { isSignOutPending }
974+ onClick = { ( ) => setIsSignOutOpen ( true ) }
975+ type = "button"
976+ variant = "destructive"
977+ >
978+ { isSignOutPending ? (
979+ < Spinner aria-label = "Signing out" className = "h-4 w-4 border-2" />
980+ ) : null }
981+ { isSignOutPending ? "Signing out…" : "Sign Out" }
982+ </ Button >
987983 </ div >
988984 < AlertDialog
989985 onOpenChange = { ( open ) => {
0 commit comments