diff options
| author | Ellie Huxtable <ellie@elliehuxtable.com> | 2024-06-06 10:36:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-06 10:36:39 +0100 |
| commit | d7f77ebfe1907f6993ba54bbd1b5c8544cdf7214 (patch) | |
| tree | 11e978a6008210c8a6751f33471c623a7b464fa1 /ui/src | |
| parent | chore(release): v18.3.0-prerelease.1 (#2090) (diff) | |
| download | atuin-d7f77ebfe1907f6993ba54bbd1b5c8544cdf7214.zip | |
feat(ui): setup single-instance (#2093)
Diffstat (limited to 'ui/src')
| -rw-r--r-- | ui/src/App.tsx | 10 | ||||
| -rw-r--r-- | ui/src/components/LoginOrRegister.tsx | 4 | ||||
| -rw-r--r-- | ui/src/state/store.ts | 1 |
3 files changed, 3 insertions, 12 deletions
diff --git a/ui/src/App.tsx b/ui/src/App.tsx index 54b62c46..26a4d4da 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -5,17 +5,9 @@ import { useStore } from "@/state/store"; import Button, { ButtonStyle } from "@/components/Button"; -import { - Dialog, - DialogContent, - DialogDescription, - DialogHeader, - DialogTitle, - DialogTrigger, -} from "@/components/ui/dialog"; +import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; import { - Cog6ToothIcon, HomeIcon, ClockIcon, WrenchScrewdriverIcon, diff --git a/ui/src/components/LoginOrRegister.tsx b/ui/src/components/LoginOrRegister.tsx index c13c314c..f05a9a24 100644 --- a/ui/src/components/LoginOrRegister.tsx +++ b/ui/src/components/LoginOrRegister.tsx @@ -25,7 +25,7 @@ function Login(props: LoginProps) { await login(username, password, key); refreshUser(); console.log("Logged in"); - } catch (e) { + } catch (e: any) { console.error(e); setErrors(e); } @@ -190,7 +190,7 @@ function Register(props: RegisterProps) { await register(username, email, password); refreshUser(); console.log("Logged in"); - } catch (e) { + } catch (e: any) { console.error(e); setErrors(e); } diff --git a/ui/src/state/store.ts b/ui/src/state/store.ts index 6746c1fb..1ad5dc32 100644 --- a/ui/src/state/store.ts +++ b/ui/src/state/store.ts @@ -11,7 +11,6 @@ import { Alias, ShellHistory, Var, - Settings, } from "./models"; import { invoke } from "@tauri-apps/api/core"; |
