mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-15 12:23:51 +00:00
7c19c52332
merge with directory
25 lines
775 B
TypeScript
25 lines
775 B
TypeScript
import useScrollIntoView from '../../../../common/hooks/useScrollIntoView';
|
|
import type { PanelBaseProps } from '../../panel-list/PanelList';
|
|
import * as Panel from '../../panel-utils/PanelUtils';
|
|
|
|
import CustomFields from './custom-fields/CustomFields';
|
|
import UrlPresetsForm from './UrlPresetsForm';
|
|
|
|
export default function FeatureSettingsPanel({ location }: PanelBaseProps) {
|
|
const customFieldsRef = useScrollIntoView<HTMLDivElement>('custom', location);
|
|
const urlPresetsRef = useScrollIntoView<HTMLDivElement>('urlpresets', location);
|
|
|
|
return (
|
|
<>
|
|
<Panel.Header>Feature Settings</Panel.Header>
|
|
<div ref={customFieldsRef}>
|
|
<CustomFields />
|
|
</div>
|
|
|
|
<div ref={urlPresetsRef}>
|
|
<UrlPresetsForm />
|
|
</div>
|
|
</>
|
|
);
|
|
}
|