diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2024-07-23 13:18:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-23 13:18:54 +0100 |
| commit | f8c963c7d668fc57680f25413f20bc207d4bf64a (patch) | |
| tree | c7f952ddc0220cded24f5447d03b3bff46fb1d45 /ui/src/App.tsx | |
| parent | fix(themes): Restore default theme, refactor (#2294) (diff) | |
| download | atuin-f8c963c7d668fc57680f25413f20bc207d4bf64a.zip | |
feat(gui): clean up home page, fix a few bugs (#2304)
* wip home screen changes
* more
* adjust
* fixes and things
* patch runbook pty check
Diffstat (limited to 'ui/src/App.tsx')
| -rw-r--r-- | ui/src/App.tsx | 39 |
1 files changed, 4 insertions, 35 deletions
diff --git a/ui/src/App.tsx b/ui/src/App.tsx index 5963d31e..361a6fea 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -1,34 +1,13 @@ import "./App.css"; import { open } from "@tauri-apps/plugin-shell"; -import { useState, ReactElement, useEffect } from "react"; +import { useState, ReactElement } from "react"; import { useStore } from "@/state/store"; import { Toaster } from "@/components/ui/toaster"; -import { - SettingsIcon, - CircleHelpIcon, - KeyRoundIcon, - LogOutIcon, -} from "lucide-react"; +import { KeyRoundIcon } from "lucide-react"; import { Icon } from "@iconify/react"; -import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; - -import { - HomeIcon, - ClockIcon, - WrenchScrewdriverIcon, -} from "@heroicons/react/24/outline"; - -import { ChevronRightSquare } from "lucide-react"; - -import Logo from "./assets/logo-light.svg"; - -function classNames(...classes: any) { - return classes.filter(Boolean).join(" "); -} - import Home from "./pages/Home.tsx"; import History from "./pages/History.tsx"; import Dotfiles from "./pages/Dotfiles.tsx"; @@ -41,7 +20,6 @@ import { Button, ScrollShadow, Spacer, - Tooltip, Dropdown, DropdownItem, DropdownMenu, @@ -49,19 +27,10 @@ import { DropdownTrigger, Modal, ModalContent, - ModalHeader, - ModalBody, - ModalFooter, useDisclosure, - Checkbox, - Input, - Link, } from "@nextui-org/react"; -import { cn } from "@/lib/utils"; -import { sectionItems } from "@/components/Sidebar/sidebar-items"; import Sidebar, { SidebarItem } from "@/components/Sidebar"; import icon from "@/assets/icon.svg"; -import iconText from "@/assets/logo-light.svg"; import { logout } from "./state/client.ts"; enum Section { @@ -89,8 +58,8 @@ function App() { // I think hashrouter may work, but I'd rather avoiding thinking of them as // pages const [section, setSection] = useState(Section.Home); - const user = useStore((state) => state.user); - const refreshUser = useStore((state) => state.refreshUser); + const user = useStore((state: any) => state.user); + const refreshUser = useStore((state: any) => state.refreshUser); const { isOpen, onOpen, onOpenChange } = useDisclosure(); const navigation: SidebarItem[] = [ |
