Skip to content

Commit

Permalink
design: 필터 적용 시 border white 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
sinji2102 committed Dec 3, 2024
1 parent 776b6fe commit 0c53546
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/pages/ticketholderlist/TicketHolderList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ const TicketHolderList = () => {
handleInputChange={handleInputChange}
searchWord={searchWord}
status={status}
isFilter={
filterList.scheduleNumber.length > 0 || filterList.bookingStatus.length > 0
}
/>
{status === "DEFAULT" && (
<SelectedChips
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ export const SearchBar = styled.input`
border-radius: 4rem;
`;

export const FilterBtn = styled(BtnFilter)`
export const FilterBtn = styled(BtnFilter)<{ $isFilter: boolean }>`
width: 4.8rem;
height: 4.8rem;
margin-left: 1.2rem;
background-color: ${({ theme }) => theme.colors.gray_800};
border: 0.1rem solid;
border-color: ${({ theme }) => theme.colors.gray_700};
border: 0.1rem solid
${({ theme, $isFilter }) => ($isFilter ? theme.colors.white : theme.colors.gray_700)};
border-radius: 50%;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ interface SearchBarProps {
searchWord: string;
handleFilterSheet: () => void;
handleInputChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
isFilter: boolean;
}

// TODO: 필터 적용되었을 때 아웃라인 색상 적용 -> 기능 붙일 때 같이 하기
Expand All @@ -14,6 +15,7 @@ const SearchBar = ({
status,
handleInputChange,
searchWord,
isFilter,
}: SearchBarProps) => {
return (
<S.SearchBarWrapper>
Expand All @@ -23,7 +25,7 @@ const SearchBar = ({
value={searchWord}
onChange={handleInputChange}
></S.SearchBar>
{status === "DEFAULT" && <S.FilterBtn onClick={handleFilterSheet} />}
{status === "DEFAULT" && <S.FilterBtn onClick={handleFilterSheet} $isFilter={isFilter} />}
</S.SearchBarWrapper>
);
};
Expand Down

0 comments on commit 0c53546

Please sign in to comment.