-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aedd6c9
commit fff9c3b
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
FE/issue-tracker/src/components/issues/tableMain/NoIssue.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}; | ||
`; |