simplify darkmode ui toggle.

This commit is contained in:
Jason Kulatunga
2022-06-04 20:32:12 -07:00
parent 4b767421f3
commit 2ca44c967e
5 changed files with 29 additions and 37 deletions
@@ -1,7 +1,7 @@
import { Layout } from "app/layout/layout.types";
// Theme type
export type Theme = "light" | "dark";
export type Theme = "light" | "dark" | "system";
/**
* AppConfig interface. Update this interface to strictly type your config
@@ -17,8 +17,6 @@ export interface AppConfig
dashboardSort: string;
temperatureUnit: string;
themeUseSystem: boolean;
}
/**
@@ -37,7 +35,5 @@ export const appConfig: AppConfig = {
dashboardSort: "status",
temperatureUnit: "celsius",
themeUseSystem: true,
};