aboutsummaryrefslogtreecommitdiffstats
path: root/ui/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/pages')
-rw-r--r--ui/src/pages/Dotfiles.tsx2
-rw-r--r--ui/src/pages/History.tsx5
-rw-r--r--ui/src/pages/Home.tsx7
3 files changed, 7 insertions, 7 deletions
diff --git a/ui/src/pages/Dotfiles.tsx b/ui/src/pages/Dotfiles.tsx
index 43ecfa2a..d3a9a86d 100644
--- a/ui/src/pages/Dotfiles.tsx
+++ b/ui/src/pages/Dotfiles.tsx
@@ -43,7 +43,7 @@ function Header({ current, setCurrent }: HeaderProps) {
);
}
-function classNames(...classes) {
+function classNames(...classes: any[]) {
return classes.filter(Boolean).join(" ");
}
diff --git a/ui/src/pages/History.tsx b/ui/src/pages/History.tsx
index 34ad93c2..47074c62 100644
--- a/ui/src/pages/History.tsx
+++ b/ui/src/pages/History.tsx
@@ -8,9 +8,6 @@ import Drawer from "@/components/Drawer.tsx";
import { useStore } from "@/state/store";
-import { inspectHistory, listHistory } from "@/state/models";
-import { invoke } from "@tauri-apps/api/core";
-
function Header() {
return (
<div className="md:flex md:items-center md:justify-between">
@@ -66,7 +63,7 @@ export default function Search() {
refreshHistory();
}, []);
- const parentRef = useRef();
+ const parentRef = useRef<HTMLElement | null>(null);
const rowVirtualizer = useVirtualizer({
count: history.length,
diff --git a/ui/src/pages/Home.tsx b/ui/src/pages/Home.tsx
index c0f8fbc5..ce42e0b1 100644
--- a/ui/src/pages/Home.tsx
+++ b/ui/src/pages/Home.tsx
@@ -15,7 +15,7 @@ function Stats({ stats }: any) {
<dt className="truncate text-sm font-medium text-gray-500">
{item.name}
</dt>
- <dd className="mt-1 text-3xl font-semibold tracking-tight text-gray-900">
+ <dd className="mt-1 text-xl font-semibold tracking-tight text-gray-900">
{item.stat}
</dd>
</div>
@@ -44,10 +44,13 @@ function Header({ name }: any) {
export default function Home() {
const homeInfo = useStore((state) => state.homeInfo);
+ const user = useStore((state) => state.user);
const refreshHomeInfo = useStore((state) => state.refreshHomeInfo);
+ const refreshUser = useStore((state) => state.refreshUser);
useEffect(() => {
refreshHomeInfo();
+ refreshUser();
}, []);
if (!homeInfo) {
@@ -57,7 +60,7 @@ export default function Home() {
return (
<div className="pl-60">
<div className="p-10">
- <Header name={"Ellie"} />
+ <Header name={user.username} />
<div className="pt-10">
<h2 className="text-xl font-bold">Sync</h2>