diff --git a/tranga-website/src/Components/Settings/LibraryRefresh.tsx b/tranga-website/src/Components/Settings/LibraryRefresh.tsx index 5792142..9386813 100644 --- a/tranga-website/src/Components/Settings/LibraryRefresh.tsx +++ b/tranga-website/src/Components/Settings/LibraryRefresh.tsx @@ -3,7 +3,7 @@ import {SettingsContext, SettingsItem} from './Settings.tsx'; import {ApiContext} from '../../contexts/ApiContext.tsx'; import TButton from "../Inputs/TButton.tsx"; import {LibraryRefreshSetting, PatchLibraryRefreshRecord} from "../../api/data-contracts.ts"; -import {Input, Radio, RadioGroup} from "@mui/joy"; +import {Input, Radio, RadioGroup, Typography} from "@mui/joy"; export default function LibraryRefresh(): ReactNode { const settings = useContext(SettingsContext); @@ -35,11 +35,13 @@ export default function LibraryRefresh(): ReactNode { return ( + Refresh after {Object.keys(LibraryRefreshSetting).map(e => ( - {e} + ))} + When {LibraryRefreshSetting.WhileDownloading} refresh every x-minutes: Update diff --git a/tranga-website/src/Components/Settings/Settings.tsx b/tranga-website/src/Components/Settings/Settings.tsx index dbc3602..10e77c2 100644 --- a/tranga-website/src/Components/Settings/Settings.tsx +++ b/tranga-website/src/Components/Settings/Settings.tsx @@ -8,7 +8,7 @@ import { DialogContent, DialogTitle, Modal, - ModalDialog, + ModalDialog, Stack, } from '@mui/joy'; import './Settings.css'; import * as React from 'react'; @@ -82,7 +82,11 @@ export function SettingsItem({ title, children }: { title: string; children: Rea return ( {title} - {children} + + + {children} + + ); }