correct type issues
This commit is contained in:
@@ -169,7 +169,7 @@ function SettingsAppearancePane(
|
||||
<h2>{coreViewModel.translations.settings.pages.appearance}</h2>
|
||||
<hr></hr>
|
||||
{OptionButtonList(
|
||||
new React.ListState<[string, ThemeSettings]>([
|
||||
new React.ListState<[string, string]>([
|
||||
[
|
||||
coreViewModel.translations.settings.themes.dark,
|
||||
ThemeSettings.Dark,
|
||||
|
||||
@@ -10,6 +10,7 @@ export function SplitModal<T>(
|
||||
navigationState?: React.State<T | undefined>,
|
||||
) {
|
||||
function closePage() {
|
||||
if (!navigationState) return;
|
||||
navigationState.value = undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user