Skip to content

Commit

Permalink
feat: add saved counselor page filter option (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyuhho committed Jul 9, 2024
1 parent 78d986c commit b10e546
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const SavedCounselorResults = ({
level={value.level}
rating={value.ratingAverage}
totalReview={value.totalReview}
isSavedCounselorPage={true}
/>
);
})}
Expand Down
6 changes: 6 additions & 0 deletions src/components/Common/CounselorCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ interface CounselorCardProps {
totalConsult?: number;
isRealtime?: boolean;
consultStyle?: number;
isSavedCounselorPage?: boolean;
}

//
Expand Down Expand Up @@ -73,6 +74,7 @@ const CounselorCard = ({
consultStyle,
totalConsult,
isRealtime,
isSavedCounselorPage = false,
}: CounselorCardProps) => {
const navigate = useNavigate();

Expand Down Expand Up @@ -234,6 +236,10 @@ const CounselorCard = ({
//
//

if (isSavedCounselorPage && !isSaved) {
return null;
}

return (
<Wrapper>
{renderIntroSection()}
Expand Down

0 comments on commit b10e546

Please sign in to comment.