Skip to content

Commit

Permalink
Style: #35 이슈가 없을 시 보여주는 컴포넌트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
somedaycode committed Jun 15, 2021
1 parent aedd6c9 commit fff9c3b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions FE/issue-tracker/src/components/issues/tableMain/NoIssue.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import styled from 'styled-components';

interface Prop {
isSearched: boolean;
}

function NoIssue({ isSearched }: Prop) {
const issueWithSearch = '검색과 일치하는 결과가 없습니다.';
const issueNone = '등록된 이슈가 없습니다.';
return (
<NoIssueWrap>
<span>{isSearched ? issueWithSearch : issueNone}</span>
</NoIssueWrap>
);
}

export default NoIssue;

const NoIssueWrap = styled.div`
display: flex;
justify-content: space-between;
align-items: center;
background: ${({ theme }) => theme.colors.gr_offWhite};
`;

0 comments on commit fff9c3b

Please sign in to comment.