mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-05 14:29:20 +00:00
chore: improve documentation on the 12 hour view
This commit is contained in:
committed by
Carlos Valente
parent
0e3b3bcf9a
commit
d34a1f0fd8
@@ -6,6 +6,7 @@ import { Settings } from 'ontime-types';
|
|||||||
import { postSettings } from '../../../../common/api/settings';
|
import { postSettings } from '../../../../common/api/settings';
|
||||||
import { maybeAxiosError } from '../../../../common/api/utils';
|
import { maybeAxiosError } from '../../../../common/api/utils';
|
||||||
import Button from '../../../../common/components/buttons/Button';
|
import Button from '../../../../common/components/buttons/Button';
|
||||||
|
import Info from '../../../../common/components/info/Info';
|
||||||
import Input from '../../../../common/components/input/input/Input';
|
import Input from '../../../../common/components/input/input/Input';
|
||||||
import Select from '../../../../common/components/select/Select';
|
import Select from '../../../../common/components/select/Select';
|
||||||
import useSettings from '../../../../common/hooks-query/useSettings';
|
import useSettings from '../../../../common/hooks-query/useSettings';
|
||||||
@@ -98,6 +99,7 @@ export default function GeneralSettings() {
|
|||||||
{submitError && <Panel.Error>{submitError}</Panel.Error>}
|
{submitError && <Panel.Error>{submitError}</Panel.Error>}
|
||||||
<Panel.Divider />
|
<Panel.Divider />
|
||||||
<Panel.Section>
|
<Panel.Section>
|
||||||
|
<Info>Changes to the time format and views language do not affect the editor view</Info>
|
||||||
<Panel.Loader isLoading={isLoading} />
|
<Panel.Loader isLoading={isLoading} />
|
||||||
<Panel.ListGroup>
|
<Panel.ListGroup>
|
||||||
<Panel.ListItem>
|
<Panel.ListItem>
|
||||||
@@ -146,7 +148,7 @@ export default function GeneralSettings() {
|
|||||||
<Panel.ListItem>
|
<Panel.ListItem>
|
||||||
<Panel.Field
|
<Panel.Field
|
||||||
title='Time format'
|
title='Time format'
|
||||||
description='Default time format to show in views 12 /24 hours'
|
description='Default time format to show in views 12 / 24 hours'
|
||||||
error={errors.timeFormat?.message}
|
error={errors.timeFormat?.message}
|
||||||
/>
|
/>
|
||||||
<Select
|
<Select
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export default function QuickStart({ isOpen, onClose }: QuickStartProps) {
|
|||||||
<Panel.ListItem>
|
<Panel.ListItem>
|
||||||
<Panel.Field
|
<Panel.Field
|
||||||
title='Time format'
|
title='Time format'
|
||||||
description='Default time format to show in views 12 /24 hours'
|
description='Default time format to show in views 12 / 24 hours (does not affect editor)'
|
||||||
error={errors.settings?.timeFormat?.message}
|
error={errors.settings?.timeFormat?.message}
|
||||||
/>
|
/>
|
||||||
<Select
|
<Select
|
||||||
|
|||||||
Reference in New Issue
Block a user