mirror of https://github.com/usememos/memos.git
made some fixes for prettier
This commit is contained in:
parent
a7b7188218
commit
21fc2f3b98
|
|
@ -17,7 +17,7 @@ const ThemeSelect = ({ value, onValueChange, className }: ThemeSelectProps = {})
|
|||
{ value: "paper", icon: <Palette className="w-4 h-4" />, label: "Paper" },
|
||||
{ value: "whitewall", icon: <Wallpaper className="w-4 h-4" />, label: "Whitewall" },
|
||||
{ value: "nauticalblue", icon: <Anchor className="w-4 h-4" strokeWidth={1.3} />, label: "Nautical Blue Light" },
|
||||
{ value: "nauticalblue-dark", icon: <Anchor className="w-4 h-4" strokeWidth={2.57} />, label: "Nautical Blue Dark" }
|
||||
{ value: "nauticalblue-dark", icon: <Anchor className="w-4 h-4" strokeWidth={2.57} />, label: "Nautical Blue Dark" },
|
||||
];
|
||||
|
||||
const handleThemeChange = (newTheme: Theme) => {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import defaultDarkThemeContent from "../themes/default-dark.css?raw";
|
||||
import nauticalBlueDarkThemeContent from "../themes/nauticalblue-dark.css?raw";
|
||||
import nauticalBlueThemeContent from "../themes/nauticalblue.css?raw";
|
||||
import paperThemeContent from "../themes/paper.css?raw";
|
||||
import whitewallThemeContent from "../themes/whitewall.css?raw";
|
||||
import nauticalBlueThemeContent from "../themes/nauticalblue.css?raw";
|
||||
import nauticalBlueDarkThemeContent from "../themes/nauticalblue-dark.css?raw";
|
||||
|
||||
const VALID_THEMES = ["default", "default-dark", "paper", "whitewall", "nauticalblue", "nauticalblue-dark"] as const;
|
||||
type ValidTheme = (typeof VALID_THEMES)[number];
|
||||
|
|
@ -13,7 +13,7 @@ const THEME_CONTENT: Record<ValidTheme, string | null> = {
|
|||
paper: paperThemeContent,
|
||||
whitewall: whitewallThemeContent,
|
||||
nauticalblue: nauticalBlueThemeContent,
|
||||
"nauticalblue-dark": nauticalBlueDarkThemeContent
|
||||
"nauticalblue-dark": nauticalBlueDarkThemeContent,
|
||||
};
|
||||
|
||||
const validateTheme = (theme: string): ValidTheme => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue