mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 10:23:54 +00:00
de9a7a87fd
* refactor(project structure): UI * refactor(project structure): extract utilities * refactor(project structure): remove unused * refactor(project structure): electron * refactor(project structure): server refactor: migrate to vitest refactor: monorepo config * refactor: extract application menu * refactor: exit process * refactor: extract tray menu * chore: electron build * Added Seconds in studio clock #282 --------- Co-authored-by: Fabian Posenau <fabian@fphome.de> --------- Co-authored-by: Fabian Posenau <fabian.p99@gmx.de> Co-authored-by: Fabian Posenau <fabian@fphome.de>
24 lines
641 B
TypeScript
24 lines
641 B
TypeScript
import { atom } from 'jotai';
|
|
import { atomWithStorage, selectAtom } from 'jotai/utils';
|
|
|
|
export const eventSettingsAtom = atomWithStorage('ontime-eventSettings', {
|
|
showQuickEntry: false,
|
|
startTimeIsLastEnd: false,
|
|
defaultPublic: false,
|
|
});
|
|
|
|
export const showQuickEntryAtom = selectAtom(
|
|
eventSettingsAtom,
|
|
(settings) => settings.showQuickEntry
|
|
);
|
|
export const startTimeIsLastEndAtom = selectAtom(
|
|
eventSettingsAtom,
|
|
(settings) => settings.startTimeIsLastEnd
|
|
);
|
|
export const defaultPublicAtom = selectAtom(
|
|
eventSettingsAtom,
|
|
(settings) => settings.defaultPublic
|
|
);
|
|
|
|
export const editorEventId = atom<string | null>(null);
|