fix: system default theme for dashboard and booking page (#15291)

* fix: system default theme

* update

---------

Co-authored-by: Anik Dhabal Babu <[email protected]>
Co-authored-by: unknown <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-07-19 13:42:21 +02:00
1 parent 5b97d3bf52
commit 159fe3a87d
4 files changed
+5 -4

No files matched your search

@@ -197,7 +197,7 @@ const AppearanceView = ({
form={userAppThemeFormMethods}
handleSubmit={(values) => {
mutation.mutate({
appTheme: values.appTheme ?? null,
appTheme: values.appTheme === "" ? null : values.appTheme,
});
}}>
<div className="border-subtle flex flex-col justify-between border-x px-6 py-8 sm:flex-row">
@@ -249,7 +249,7 @@ const AppearanceView = ({
mutation.mutate({
// Radio values don't support null as values, therefore we convert an empty string
// back to null here.
theme: values.theme ?? null,
theme: values.theme === "" ? null : values.theme,
});
}}>
<div className="border-subtle flex flex-col justify-between border-x px-6 py-8 sm:flex-row">