mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 14:08:55 +08:00
refactor: change locale key (#3838)
This commit is contained in:
@@ -24,14 +24,14 @@ export const StyledContainer = styled('div')(() => {
|
||||
};
|
||||
});
|
||||
|
||||
export const NotfoundPage = () => {
|
||||
export const NotFoundPage = () => {
|
||||
const t = useAFFiNEI18N();
|
||||
const { jumpToSubPath, jumpToIndex } = useNavigateHelper();
|
||||
return (
|
||||
<StyledContainer data-testid="notFound">
|
||||
<img alt="404" src="/imgs/invite-error.svg" width={360} height={270} />
|
||||
|
||||
<p>{t['404 - Page Not Found']()}</p>
|
||||
<p>{t['com.affine.notFoundPage.title']()}</p>
|
||||
<Button
|
||||
onClick={() => {
|
||||
const id = localStorage.getItem('last_workspace_id');
|
||||
@@ -42,12 +42,12 @@ export const NotfoundPage = () => {
|
||||
}
|
||||
}}
|
||||
>
|
||||
{t['Back Home']()}
|
||||
{t['com.affine.backButton']()}
|
||||
</Button>
|
||||
</StyledContainer>
|
||||
);
|
||||
};
|
||||
|
||||
export const Component = (): ReactElement => {
|
||||
return <NotfoundPage></NotfoundPage>;
|
||||
return <NotFoundPage />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user