feat(frontend): add option to hide all available items from discovery (#699)

This commit is contained in:
sct
2021-01-20 18:56:45 +09:00
committed by GitHub
parent e1032ff5df
commit 6c1742e94c
19 changed files with 192 additions and 19 deletions

View File

@@ -2,7 +2,7 @@ import React from 'react';
import { PublicSettingsResponse } from '../../server/interfaces/api/settingsInterfaces';
import useSWR from 'swr';
interface SettingsContextProps {
export interface SettingsContextProps {
currentSettings: PublicSettingsResponse;
}
@@ -10,6 +10,7 @@ const defaultSettings = {
initialized: false,
movie4kEnabled: false,
series4kEnabled: false,
hideAvailable: false,
};
export const SettingsContext = React.createContext<SettingsContextProps>({