Use DefaultView from API.

This commit is contained in:
n8detar 2022-04-16 15:39:33 -07:00
parent d9fae64afb
commit add20a4a6a
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ const Download: NextPage = () => {
}
);
const [viewStyle, setViewStyle] = useState<ViewStyle>("grid");
const [viewStyle, setViewStyle] = useState<ViewStyle>(downloads?.config?.default_view?.downloads);
const [ignoredStatus, setIgnoredStatus] = useState<IgnoredStatus>(false);
const handleSetViewstyle = (selectedViewStyle: ViewStyle) => {

View File

@ -36,7 +36,7 @@ export interface Archive {
export interface DefaultView {
home: string;
channel: string;
downloads: string;
downloads: "grid" | "list";
playlist: string;
}