-
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.
- Loading branch information
1 parent
ad14352
commit 01dcd2f
Showing
6 changed files
with
72 additions
and
28 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
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import React from 'react'; | ||
interface ErrorFallbackProps { | ||
error: Nullable<Error>; | ||
reset: () => void; | ||
} | ||
import styled from 'styled-components'; | ||
|
||
function ErrorFallback({ error, reset }: ErrorFallbackProps) { | ||
console.log('>>>', error, reset); | ||
return <div>ErrorFallback</div>; | ||
function ErrorFallback() { | ||
return <Styled.Root>에러로 데이터를 불러올 수 없습니다ㅠ</Styled.Root>; | ||
} | ||
|
||
export default ErrorFallback; | ||
const Styled = { | ||
Root: styled.section` | ||
color: ${({ theme }) => theme.colors['gray-0']}; | ||
font-size: 1rem; | ||
margin-top: 10rem; | ||
`, | ||
}; |
File renamed without changes.
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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import React from 'react'; | ||
|
||
import styled from 'styled-components'; | ||
function Loading() { | ||
console.log('로딩중'); | ||
return <div>Loading</div>; | ||
return <Styled.Root>Loading...기다려줘...</Styled.Root>; | ||
} | ||
|
||
export default Loading; | ||
const Styled = { | ||
Root: styled.section` | ||
color: ${({ theme }) => theme.colors['gray-0']}; | ||
font-size: 1rem; | ||
margin-top: 10rem; | ||
`, | ||
}; |
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