-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[FEAT] API error boundary
- Loading branch information
Showing
6 changed files
with
69 additions
and
0 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,8 @@ | ||
[{ | ||
"relation": ["delegate_permission/common.handle_all_urls"], | ||
"target": { | ||
"namespace": "android_app", | ||
"package_name": "kr.co.causw.twa", | ||
"sha256_cert_fingerprints": ["68:47:73:4E:14:52:93:02:99:11:0D:06:6F:4B:C7:24:1A:10:90:11:2C:F7:BA:63:F9:75:37:4D:7C:93:13:6A"] | ||
} | ||
}] |
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
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import styled from '@emotion/styled'; | ||
import { observer } from 'mobx-react-lite'; | ||
import React from 'react'; | ||
|
||
import { PageUiStoreImpl } from './ApiErrorPageUiStore'; | ||
|
||
import { PageBody, PageStoreHOC, Header } from '@/components'; | ||
import { PAGE_URL } from '@/configs/path'; | ||
|
||
const ApiErrorPage: React.FC = observer(() => { | ||
return ( | ||
<> | ||
<Header withBack={PAGE_URL.Home} title="500 Error" /> | ||
<PageBody> | ||
<Wrapper> | ||
<img src="/images/mascot-study.png" alt="Api Error Img" /> | ||
<h4>일시적으로 서비스를 이용할 수 없습니다.</h4> | ||
문제가 지속적으로 발생하는 경우 <br /> | ||
아래 이메일로 문의해주세요. | ||
<br />( [email protected] ) | ||
</Wrapper> | ||
</PageBody> | ||
</> | ||
); | ||
}); | ||
|
||
const Wrapper = styled.div` | ||
margin: 100px 0 30px; | ||
font-size: 12px; | ||
//font-weight: bolder; | ||
color: #545454; | ||
text-align: center; | ||
> img { | ||
margin-bottom: -10px; | ||
width: 170px; | ||
} | ||
> h4 { | ||
font-size: 16px; | ||
margin-bottom: 30px; | ||
} | ||
`; | ||
|
||
export default PageStoreHOC(<ApiErrorPage />, { store: PageUiStoreImpl }); |
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,9 @@ | ||
import { makeAutoObservable } from 'mobx'; | ||
|
||
export class ApiErrorPageUiStore { | ||
constructor() { | ||
makeAutoObservable(this, {}, { autoBind: true }); | ||
} | ||
} | ||
|
||
export const PageUiStoreImpl = new ApiErrorPageUiStore(); |