Execute oxfmt (#1166)
Ran pnpm oxfmt . This should get the web repo aligned so that we can better enforce oxfmt going forward.
This commit is contained in:
@@ -42,7 +42,8 @@ export default function ThemeSwitcher({
|
||||
const toggleTheme = () => {
|
||||
const preferences: ThemePreference[] = ["light", "dark", "system"];
|
||||
const currentIndex = preferences.indexOf(preference);
|
||||
const nextPreference = preferences[(currentIndex + 1) % preferences.length] ?? "system";
|
||||
const nextPreference =
|
||||
preferences[(currentIndex + 1) % preferences.length] ?? "system";
|
||||
setPreference(nextPreference);
|
||||
toggleShowTooltip();
|
||||
};
|
||||
@@ -89,7 +90,8 @@ export default function ThemeSwitcher({
|
||||
"text-sm",
|
||||
"text-gray-600 dark:text-gray-300",
|
||||
"transition-colors duration-150",
|
||||
!disableHover && "group-hover:text-gray-800 dark:group-hover:text-gray-100",
|
||||
!disableHover &&
|
||||
"group-hover:text-gray-800 dark:group-hover:text-gray-100",
|
||||
)}
|
||||
>
|
||||
{t("theme.changeTheme")}
|
||||
|
||||
Reference in New Issue
Block a user