Add Sonner-based notifications and UX polish
This commit is contained in:
@@ -25,16 +25,25 @@ export function FloatingPreferences({
|
||||
<SoundToggle
|
||||
ariaLabel={t("soundMute")}
|
||||
mutedAriaLabel={t("soundUnmute")}
|
||||
mutedToastLabel={t("soundMuted")}
|
||||
unmutedToastLabel={t("soundEnabled")}
|
||||
variant="ghost"
|
||||
className="h-9 w-9 rounded-pill border border-transparent bg-transparent text-foreground/80 hover:bg-accent hover:text-foreground"
|
||||
/>
|
||||
<ThemeToggle
|
||||
ariaLabel={t("themeToggle")}
|
||||
lightToastLabel={t("themeLight")}
|
||||
darkToastLabel={t("themeDark")}
|
||||
variant="ghost"
|
||||
className="h-9 w-9 rounded-pill border border-transparent bg-transparent text-foreground/80 hover:bg-accent hover:text-foreground"
|
||||
/>
|
||||
<LocaleToggle
|
||||
locale={locale}
|
||||
localeChangedLabels={{
|
||||
de: t("localeChangedDe"),
|
||||
en: t("localeChangedEn"),
|
||||
ar: t("localeChangedAr"),
|
||||
}}
|
||||
className="h-9 w-9 rounded-pill border border-transparent bg-transparent p-0 text-foreground/80 hover:bg-accent hover:text-foreground"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user