@@ -67,7 +67,6 @@ export default function AdminOffers() {
6767 // Preview modal state
6868 const [ previewData , setPreviewData ] = useState < RefreshPreview | null > ( null )
6969 const [ previewModalOpen , setPreviewModalOpen ] = useState ( false )
70- const [ applyProgress , setApplyProgress ] = useState ( 0 )
7170 const [ previewActiveTab , setPreviewActiveTab ] = useState < 'new' | 'updated' | 'deactivated' > ( 'new' )
7271 const [ loadingPreview , setLoadingPreview ] = useState < string | null > ( null )
7372 const [ refreshingProvider , setRefreshingProvider ] = useState < string | null > ( null )
@@ -188,7 +187,6 @@ export default function AdminOffers() {
188187 }
189188
190189 setRefreshingProvider ( providerId )
191- // Don't reset applyProgress - let syncStatus.progress from backend continue
192190
193191 // Start polling sync status immediately
194192 refetchSyncStatus ( )
@@ -2322,31 +2320,6 @@ export default function AdminOffers() {
23222320 ) }
23232321 </ div >
23242322
2325- { /* Progress bar */ }
2326- { refreshingProvider && applyProgress > 0 && (
2327- < div className = "mx-6 mb-6 mt-4 p-4 bg-primary-50 dark:bg-primary-900/20 border border-primary-200 dark:border-primary-800 rounded-lg" >
2328- < div className = "mb-3 flex justify-between items-center" >
2329- < div className = "flex items-center gap-2" >
2330- < Loader2 className = "animate-spin text-primary-600 dark:text-primary-400" size = { 20 } />
2331- < span className = "text-base font-semibold text-primary-900 dark:text-primary-100" >
2332- Application des changements...
2333- </ span >
2334- </ div >
2335- < span className = "text-xl font-bold text-primary-600 dark:text-primary-400" >
2336- { applyProgress } %
2337- </ span >
2338- </ div >
2339- < div className = "w-full bg-primary-100 dark:bg-primary-900/40 rounded-full h-4 overflow-hidden shadow-inner" >
2340- < div
2341- className = "bg-gradient-to-r from-primary-500 to-primary-600 dark:from-primary-400 dark:to-primary-500 h-4 rounded-full transition-all duration-500 ease-out shadow-lg"
2342- style = { { width : `${ applyProgress } %` } }
2343- >
2344- < div className = "h-full w-full bg-gradient-to-r from-transparent via-white/30 to-transparent animate-pulse" > </ div >
2345- </ div >
2346- </ div >
2347- </ div >
2348- ) }
2349-
23502323 { /* Actions */ }
23512324 < div className = "p-6 border-t border-gray-300 dark:border-gray-700 bg-gray-50 dark:bg-gray-900" >
23522325 < div className = "flex justify-between items-center" >
0 commit comments