fix: types

This commit is contained in:
Shusui MOYATANI
2024-01-06 18:08:20 +09:00
parent 357e337f66
commit 642a67cf13
2 changed files with 2 additions and 3 deletions

View File

@@ -124,12 +124,12 @@ const [config, setConfig] = createRoot(() =>
const useConfig = (): UseConfig => {
const i18n = useTranslation();
const getColorTheme = (): ColorTheme | null => {
const getColorTheme = (): ColorTheme => {
const colorThemeConfig = config.colorTheme;
if (colorThemeConfig.type === 'specific' && colorThemes[colorThemeConfig.id] != null) {
return colorThemes[colorThemeConfig.id];
}
return null;
return colorThemes.sakura;
};
const addRelay = (relayUrl: string) => {

View File

@@ -7,7 +7,6 @@ export const useColorTheme = (el: HTMLElement) => {
createEffect(() => {
const colorTheme = getColorTheme();
if (colorTheme == null) return;
const { className } = colorTheme;
if (className != null) {