diff --git a/src/app/(home)/_components/FeedLists.css.ts b/src/app/(home)/_components/FeedLists.css.ts index 70e54f0e..81f6e396 100644 --- a/src/app/(home)/_components/FeedLists.css.ts +++ b/src/app/(home)/_components/FeedLists.css.ts @@ -1,6 +1,5 @@ import { style, createVar, keyframes } from '@vanilla-extract/css'; import { vars } from '@/styles/__theme.css'; -import { headlineSmall } from '@/styles/__font.css'; export const listBackground = createVar(); @@ -20,12 +19,9 @@ export const titleWrapper = style({ gap: '5px', }); -export const sectionTitle = style([ - headlineSmall, - { - fontWeight: 600, - }, -]); +export const sectionTitle = style({ + fontWeight: 600, +}); const listWrapperHoverAnimation = keyframes({ '0%': { diff --git a/src/app/(home)/_components/Header.tsx b/src/app/(home)/_components/Header.tsx index 80fda046..eba521c9 100644 --- a/src/app/(home)/_components/Header.tsx +++ b/src/app/(home)/_components/Header.tsx @@ -24,9 +24,9 @@ import BellIcon from '/public/icons/ver3/bell.svg'; import Avatar from '/public/icons/ver3/Avatar.svg'; function Header() { - const [isSearchBarOpened, setIsSearchBarOpened] = useState(false); + const { isOn: isSearchBarOpened, handleSetOn: handleSearchBarOpened } = useBooleanOutput(); const { isOn, handleSetOn, handleSetOff } = useBooleanOutput(); - const [isLoggedIn, setIsLoggedIn] = useState(false); + const [isLoggedIn, setIsLoggedIn] = useState(false); // 로그인 상태를 관리하는 useState 추가 const { user } = useUser(); @@ -41,11 +41,11 @@ function Header() { }; const handleInactivateSearchBar = () => { - setIsSearchBarOpened(false); + handleSearchBarOpened(); }; const handleSearchIconClick = () => { - setIsSearchBarOpened(true); + handleSearchBarOpened(); }; useEffect(() => { diff --git a/src/app/(home)/_components/HomeTab.tsx b/src/app/(home)/_components/HomeTab.tsx index 7978dbcf..2c5f7d68 100644 --- a/src/app/(home)/_components/HomeTab.tsx +++ b/src/app/(home)/_components/HomeTab.tsx @@ -7,25 +7,20 @@ import * as styles from './HomeTab.css'; function HomeTab() { const { currentTab, setCurrentTab } = useTab(); + const getButtonStyle = (selectedTap: string) => { + return currentTab === selectedTap ? styles.activeTab : styles.tabButton; + }; + return (