diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2024-07-25 23:31:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-25 23:31:38 +0100 |
| commit | c32bbcc7edc2cf99da52b1407c90238bc781a804 (patch) | |
| tree | 4a8b307f69fb444f5c8c15a65e6f89170d9d4bbf /ui/src/pages/History.tsx | |
| parent | feat(gui): allow interacting with the embedded terminal (#2312) (diff) | |
| download | atuin-c32bbcc7edc2cf99da52b1407c90238bc781a804.zip | |
feat(gui): directory block, re-org of some code (#2314)
Diffstat (limited to 'ui/src/pages/History.tsx')
| -rw-r--r-- | ui/src/pages/History.tsx | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/ui/src/pages/History.tsx b/ui/src/pages/History.tsx index 64c2fca6..7002f3c4 100644 --- a/ui/src/pages/History.tsx +++ b/ui/src/pages/History.tsx @@ -6,7 +6,7 @@ import HistorySearch from "@/components/HistorySearch.tsx"; import Stats from "@/components/history/Stats.tsx"; import Drawer from "@/components/Drawer.tsx"; -import { useStore } from "@/state/store"; +import { AtuinState, useStore } from "@/state/store"; function Header() { return ( @@ -49,9 +49,13 @@ function Header() { } export default function Search() { - const history = useStore((state) => state.shellHistory); - const refreshHistory = useStore((state) => state.refreshShellHistory); - const historyNextPage = useStore((state) => state.historyNextPage); + const history = useStore((state: AtuinState) => state.shellHistory); + const refreshHistory = useStore( + (state: AtuinState) => state.refreshShellHistory, + ); + const historyNextPage = useStore( + (state: AtuinState) => state.historyNextPage, + ); let [query, setQuery] = useState(""); @@ -84,12 +88,7 @@ export default function Search() { return ( <> - <div className="w-full flex-1 flex-col p-4"> - <div className="p-10 history-header"> - <Header /> - <p>A history of all the commands you run in your shell.</p> - </div> - + <div className="w-full flex-1 flex-col"> <div className="flex h-16 shrink-0 items-center gap-x-4 border-b border-t border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8 history-search"> <HistorySearch query={query} |
