@@ -734,11 +734,6 @@ export const AccountPanel: React.FC<AccountPanelProps> = ({
734734 startBackgroundSync ( lastSyncIsFirstLogin ?? false ) ;
735735 } , [ lastSyncIsFirstLogin , startBackgroundSync , syncStatus ] ) ;
736736
737- const handleOverwriteCloudSettings = useCallback ( ( ) => {
738- if ( syncStatus !== 'failed' || syncInFlightRef . current ) return ;
739- startBackgroundSync ( true ) ;
740- } , [ startBackgroundSync , syncStatus ] ) ;
741-
742737 /** Landing path after a completed login: devices view + background sync. */
743738 const completeLogin = useCallback ( (
744739 relayUrl : string ,
@@ -1238,29 +1233,16 @@ export const AccountPanel: React.FC<AccountPanelProps> = ({
12381233 { syncStatus === 'failed' && syncFailureMessage ( t , lastSyncError ) }
12391234 </ span >
12401235 { syncStatus === 'failed' && (
1241- < >
1242- < Button
1243- variant = "outline"
1244- size = "sm"
1245- leadingIcon = { < Icon name = "refresh" size = "lg" /> }
1246- className = "account-panel__sync-retry"
1247- onClick = { handleRetrySync }
1248- disabled = { loading }
1249- >
1250- { t ( 'accountLogin.retrySync' ) }
1251- </ Button >
1252- < Button
1253- variant = "outline"
1254- size = "sm"
1255- leadingIcon = { < Icon name = "upload" size = "lg" /> }
1256- className = "account-panel__sync-retry"
1257- onClick = { handleOverwriteCloudSettings }
1258- disabled = { loading }
1259- title = { t ( 'accountLogin.useLocalDesc' ) }
1260- >
1261- { t ( 'accountLogin.useLocalTitle' ) }
1262- </ Button >
1263- </ >
1236+ < Button
1237+ variant = "outline"
1238+ size = "sm"
1239+ leadingIcon = { < Icon name = "refresh" size = "lg" /> }
1240+ className = "account-panel__sync-retry"
1241+ onClick = { handleRetrySync }
1242+ disabled = { loading }
1243+ >
1244+ { t ( 'accountLogin.retrySync' ) }
1245+ </ Button >
12641246 ) }
12651247 { syncStatus === 'syncing' && (
12661248 < span className = "account-panel__sync-indicator-percent" >
0 commit comments