about modal (#244)

This commit is contained in:
Red J Adaya
2024-08-19 15:49:40 -07:00
committed by GitHub
parent 534fcc5d0a
commit 964c422a02
15 changed files with 353 additions and 185 deletions
+9
View File
@@ -62,6 +62,15 @@ function initGlobalAtoms(initOpts: GlobalInitOptions) {
// do nothing
}
const showAboutModalAtom = jotai.atom(false) as jotai.PrimitiveAtom<boolean>;
try {
getApi().onMenuItemAbout(() => {
modalsModel.pushModal("AboutModal");
});
} catch (_) {
// do nothing
}
const clientAtom: jotai.Atom<Client> = jotai.atom((get) => {
const clientId = get(clientIdAtom);
if (clientId == null) {