improvement: loading state added to buttons who interact with backend.
This commit is contained in:
@@ -79,7 +79,7 @@ export function LanguageToggle() {
|
||||
<button
|
||||
type="button"
|
||||
className="flex w-full items-center justify-between gap-3 px-3 py-2 text-sm text-text-primary hover:bg-background-card/70"
|
||||
onClick={() => void switchLocale(option)}
|
||||
onClick={() => switchLocale(option)}
|
||||
>
|
||||
<span>{t(option)}</span>
|
||||
{selected && <Check className="h-4 w-4 text-primary shrink-0" />}
|
||||
|
||||
Reference in New Issue
Block a user