From 91e90cba08d39df04859e59dd020b6e2b5bde9c3 Mon Sep 17 00:00:00 2001 From: rimar1337 <132627503+rimar1337@users.noreply.github.com> Date: Sat, 18 Oct 2025 19:20:37 +0700 Subject: [PATCH] more material 3 tweaks --- src/components/Header.tsx | 6 ++- src/components/InfiniteCustomFeed.tsx | 4 +- src/components/UniversalPostRenderer.tsx | 30 +++++------ src/main.tsx | 63 ++++++++++++++++++++---- src/routes/__root.tsx | 14 +++--- src/routes/index.tsx | 8 ++- src/styles/app.css | 19 +++++++ src/utils/atoms.ts | 2 + 8 files changed, 109 insertions(+), 37 deletions(-) diff --git a/src/components/Header.tsx b/src/components/Header.tsx index ad24a94..691e47a 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -1,4 +1,7 @@ import { Link, useRouter } from "@tanstack/react-router"; +import { useAtom } from "jotai"; + +import { isAtTopAtom } from "~/utils/atoms"; export function Header({ backButtonCallback, @@ -8,9 +11,10 @@ export function Header({ title?: string; }) { const router = useRouter(); + const [isAtTop] = useAtom(isAtTopAtom); //const what = router.history. return ( -