mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 09:53:48 +00:00
3603b836f6
* refactor: typescript migration * chore: remove prop-types package * refactor: file structure * refactor: migrate ontime table to tanstack table 8 * refactor: rundown controller uses service as data source * refactor: convert to typescript * feat: caching store * refactor: add delay values to rundown * feat: toggle past visibility * chore: update tests * refactor: add extra fields to CSV * style: show skipped events * chore: add route to navigation menu * style: allow jumping to bottom * chore: add tests
56 lines
1.5 KiB
TypeScript
56 lines
1.5 KiB
TypeScript
import { ModalBody, Tab, TabList, TabPanel, TabPanels, Tabs } from '@chakra-ui/react';
|
|
|
|
import ModalWrapper from '../ModalWrapper';
|
|
|
|
import AliasesForm from './AliasesForm';
|
|
import AppSettingsModal from './AppSettings';
|
|
import CuesheetSettingsForm from './CuesheetSettingsForm';
|
|
import EditorSettings from './EditorSettings';
|
|
import EventDataForm from './EventDataForm';
|
|
import ViewSettingsForm from './ViewSettingsForm';
|
|
|
|
interface ModalManagerProps {
|
|
isOpen: boolean;
|
|
onClose: () => void;
|
|
}
|
|
|
|
export default function SettingsModal(props: ModalManagerProps) {
|
|
const { isOpen, onClose } = props;
|
|
return (
|
|
<ModalWrapper title='Ontime Settings' isOpen={isOpen} onClose={onClose}>
|
|
<ModalBody>
|
|
<Tabs variant='ontime' size='sm' isLazy>
|
|
<TabList>
|
|
<Tab>App</Tab>
|
|
<Tab>Event Data</Tab>
|
|
<Tab>Editor</Tab>
|
|
<Tab>Cuesheet</Tab>
|
|
<Tab>Views</Tab>
|
|
<Tab>URL Aliases</Tab>
|
|
</TabList>
|
|
<TabPanels>
|
|
<TabPanel>
|
|
<AppSettingsModal />
|
|
</TabPanel>
|
|
<TabPanel>
|
|
<EventDataForm />
|
|
</TabPanel>
|
|
<TabPanel>
|
|
<EditorSettings />
|
|
</TabPanel>
|
|
<TabPanel>
|
|
<CuesheetSettingsForm />
|
|
</TabPanel>
|
|
<TabPanel>
|
|
<ViewSettingsForm />
|
|
</TabPanel>
|
|
<TabPanel>
|
|
<AliasesForm />
|
|
</TabPanel>
|
|
</TabPanels>
|
|
</Tabs>
|
|
</ModalBody>
|
|
</ModalWrapper>
|
|
);
|
|
}
|