-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#65] refactor: NoService 컴포넌트 생성 및 분리
서비스가 없음을 표시하는 컴포넌트가 다른 곳에서도 쓰일 일이 있어서 분리
- Loading branch information
Showing
4 changed files
with
35 additions
and
22 deletions.
There are no files selected for viewing
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,16 @@ | ||
import React, { FC } from 'react'; | ||
|
||
import emptyImg from '@/assets/images/empty.png'; | ||
|
||
import { emptyStyle } from './style'; | ||
|
||
const NoService: FC = () => { | ||
return ( | ||
<div css={emptyStyle}> | ||
<img src={emptyImg} alt="empty" /> | ||
<p>There are no services</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NoService; |
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,16 @@ | ||
import { SerializedStyles, Theme, css } from '@emotion/react'; | ||
|
||
export const emptyStyle = (theme: Theme): SerializedStyles => css` | ||
text-align: center; | ||
img { | ||
width: 320px; | ||
} | ||
p { | ||
font-family: ${theme.fontCoding}; | ||
font-size: 20px; | ||
color: ${theme.colorPrimary}; | ||
margin-top: 5px; | ||
} | ||
`; |
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
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