mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 03:40:14 +00:00
Use DefaultView from API.
This commit is contained in:
parent
d9fae64afb
commit
add20a4a6a
@ -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) => {
|
||||
|
@ -36,7 +36,7 @@ export interface Archive {
|
||||
export interface DefaultView {
|
||||
home: string;
|
||||
channel: string;
|
||||
downloads: string;
|
||||
downloads: "grid" | "list";
|
||||
playlist: string;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user