diff options
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"; |
