chore: tweak home style

This commit is contained in:
Steven
2024-01-12 08:08:24 +08:00
parent 1994c20c54
commit 0c52f1ee6a
7 changed files with 37 additions and 21 deletions

View File

@ -1,13 +1,23 @@
import classNames from "classnames";
import useCurrentUser from "@/hooks/useCurrentUser";
import PersonalStatistics from "./PersonalStatistics";
import SearchBar from "./SearchBar";
import TagList from "./TagList";
const HomeSidebar = () => {
interface Props {
className?: string;
}
const HomeSidebar = (props: Props) => {
const currentUser = useCurrentUser();
return (
<aside className="relative w-full h-full max-h-screen overflow-auto hide-scrollbar flex flex-col justify-start items-start py-4 sm:pt-6">
<aside
className={classNames(
"relative w-full h-auto max-h-screen overflow-auto hide-scrollbar flex flex-col justify-start items-start",
props.className
)}
>
<SearchBar />
<PersonalStatistics user={currentUser} />
<TagList />