Skip to content

Commit

Permalink
fix: 필터 초기값 변경 및 북마크 UI 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kimeodml committed Apr 2, 2024
1 parent 76b81d0 commit a42abd9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,18 @@
}

@include media.media-breakpoint-down(mobile) {
padding: 10px;
margin-bottom: 5px;
flex-direction: column;
gap: 5px;
background: none;

&--active {
background: #ff7f23;
color: #fff;
}

span {
display: none;
}
}
}
6 changes: 3 additions & 3 deletions src/store/filter.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { atom, useAtomValue, useSetAtom } from 'jotai';

export const filterFriendAtom = atom<boolean>(true);
export const filterScrapAtom = atom<boolean>(true);
export const filterNearbyAtom = atom<boolean>(true);
export const filterFriendAtom = atom<boolean>(false);
export const filterScrapAtom = atom<boolean>(false);
export const filterNearbyAtom = atom<boolean>(false);

export const useFilterFriend = () => {
const filterFriendState = useAtomValue(filterFriendAtom);
Expand Down
4 changes: 0 additions & 4 deletions src/utils/hooks/useShopRate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ const useShopRate = (placeId: string) => {
}),
});

if (isError) {
throw new Error('Shop rate 정보를 불러오는 데 실패했습니다.');
}

const rate = !isLoading && data ? data?.rate : '정보 없음';

return {
Expand Down

0 comments on commit a42abd9

Please sign in to comment.