fix(core): unexpected redirect to expired page after accepting invitation (#10257)

Co-authored-by: EYHN <cneyhn@gmail.com>
This commit is contained in:
JimmFly
2025-02-19 17:10:12 +08:00
committed by GitHub
parent 487158b9ca
commit b456feee63
5 changed files with 40 additions and 25 deletions

View File

@@ -0,0 +1,18 @@
import { useI18n } from '@affine/i18n';
import { Button } from '../../ui/button';
import { AuthPageContainer } from '../auth-components';
export const ExpiredPage = ({ onOpenAffine }: { onOpenAffine: () => void }) => {
const t = useI18n();
return (
<AuthPageContainer
title={t['com.affine.expired.page.title']()}
subtitle={t['com.affine.expired.page.new-subtitle']()}
>
<Button variant="primary" size="large" onClick={onOpenAffine}>
{t['com.affine.auth.open.affine']()}
</Button>
</AuthPageContainer>
);
};

View File

@@ -1,4 +1,5 @@
export * from './accept-invite-page';
export * from './expired';
export * from './invite-modal';
export * from './invite-team-modal';
export * from './join-failed-page';