Fix super-admin build after removing edit color/locale state.

Table theme handlers still referenced deleted edit modal setters.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-08 14:20:28 +03:30
co-authored by Cursor
parent f4a087089e
commit 63af59f0f3
@@ -398,10 +398,6 @@ export function BusinessesPage() {
}
})
if (editBusiness?.id === b.id) {
setEditPrimaryColor(primaryColor)
}
try {
await updateBusinessPrimaryColor(b.id, primaryColor)
showToast(`Theme updated for "${b.name}".`, 'success')
@@ -416,10 +412,6 @@ export function BusinessesPage() {
}
})
if (editBusiness?.id === b.id) {
setEditPrimaryColor(currentColor)
}
showToast(
err instanceof ApiError ? err.message : 'Unable to update theme.',
'error',
@@ -446,10 +438,6 @@ export function BusinessesPage() {
}
})
if (editBusiness?.id === b.id) {
setEditDefaultLocale(defaultLocale)
}
try {
await updateBusinessDefaultLocale(b.id, defaultLocale)
showToast(`Default language updated for "${b.name}".`, 'success')
@@ -464,10 +452,6 @@ export function BusinessesPage() {
}
})
if (editBusiness?.id === b.id) {
setEditDefaultLocale(currentLocale)
}
showToast(
err instanceof ApiError ? err.message : 'Unable to update default language.',
'error',