mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
feat(core): add share page error boundary (#4245)
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
This commit is contained in:
35
apps/core/src/components/share-page-not-found-error.tsx
Normal file
35
apps/core/src/components/share-page-not-found-error.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import { Empty } from '@affine/component';
|
||||
import { Logo1Icon } from '@blocksuite/icons';
|
||||
|
||||
export const SharePageNotFoundError = () => {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
width: '100%',
|
||||
height: '100vh',
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
}}
|
||||
>
|
||||
<a
|
||||
href="https://affine.pro/"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
style={{
|
||||
position: 'absolute',
|
||||
top: '16px',
|
||||
left: '16px',
|
||||
fontSize: '24px',
|
||||
cursor: 'pointer',
|
||||
}}
|
||||
>
|
||||
<Logo1Icon />
|
||||
</a>
|
||||
<Empty
|
||||
description={'You do not have access or this content does not exist.'}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user