Skip to content

Commit

Permalink
feat: 필터 tablet 부터 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
na-reum committed Sep 10, 2023
1 parent 7afb84d commit 32a78e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/page/meetingList/Filter/Modal/OpenButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import {
import { parseBool } from '@utils/parseBool';

function FilterModalOpenButton() {
const { isMobile } = useDisplay();
const { isTablet } = useDisplay();
const [isModalOpened, setIsModalOpened] = useSessionStorage('filter&sort', false);
const isModalOpen = useMemo(() => (isMobile ? false : isModalOpened), [isModalOpened, isMobile]);
const isBottomSheetOpen = useMemo(() => (!isMobile ? false : isModalOpened), [isModalOpened, isMobile]);
const isModalOpen = useMemo(() => (isTablet ? false : isModalOpened), [isModalOpened, isTablet]);
const isBottomSheetOpen = useMemo(() => (!isTablet ? false : isModalOpened), [isModalOpened, isTablet]);

const { value: category } = useCategoryParams();
const { value: status } = useStatusParams();
Expand All @@ -40,7 +40,7 @@ function FilterModalOpenButton() {
className="filter-button"
>
<SLabel>필터</SLabel>
<EqualizerIcon width={isMobile ? 16 : 24} height={isMobile ? 16 : 24} />
<EqualizerIcon width={isTablet ? 16 : 24} height={isTablet ? 16 : 24} />
</SSelectModalOpenButton>

<FilterSelectModal isModalOpened={isModalOpen} handleModalClose={() => setIsModalOpened(false)} />
Expand Down

0 comments on commit 32a78e4

Please sign in to comment.