mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 11:53:49 +00:00
01c2ef4c4d
* refactor: rename settings panel * style: typo * style: fix blackout position * fix: offset time in time-to-end * refactor: operator is protected * style: tweaks to pincode * refactor: close params editor on submit * refactor: same navigation in all pages * refactor: use cached response
29 lines
911 B
TypeScript
29 lines
911 B
TypeScript
import useScrollIntoView from '../../../../common/hooks/useScrollIntoView';
|
|
import { PanelBaseProps } from '../../settingsStore';
|
|
import * as Panel from '../PanelUtils';
|
|
|
|
import GeneralPanelForm from './GeneralPanelForm';
|
|
import UrlPresetsForm from './UrlPresetsForm';
|
|
import ViewSettingsForm from './ViewSettingsForm';
|
|
|
|
export default function GeneralPanel({ location }: PanelBaseProps) {
|
|
const manageRef = useScrollIntoView<HTMLDivElement>('manage', location);
|
|
const viewRef = useScrollIntoView<HTMLDivElement>('view', location);
|
|
const urlPresetsRef = useScrollIntoView<HTMLDivElement>('urlpresets', location);
|
|
|
|
return (
|
|
<>
|
|
<Panel.Header>App Settings</Panel.Header>
|
|
<div ref={manageRef}>
|
|
<GeneralPanelForm />
|
|
</div>
|
|
<div ref={viewRef}>
|
|
<ViewSettingsForm />
|
|
</div>
|
|
<div ref={urlPresetsRef}>
|
|
<UrlPresetsForm />
|
|
</div>
|
|
</>
|
|
);
|
|
}
|