feat: modify invite page & 404 page (#1097)

This commit is contained in:
Qi
2023-02-17 17:44:48 +08:00
committed by GitHub
parent 5e6366ba44
commit 67fe1871da
26 changed files with 926 additions and 501 deletions

View File

@@ -46,11 +46,7 @@ export const useWorkspaceHelper = () => {
};
const acceptInvite = async (inviteCode: string) => {
let inviteInfo;
if (inviteCode) {
inviteInfo = await dataCenter.acceptInvitation(inviteCode);
}
return inviteInfo;
return dataCenter.acceptInvitation(inviteCode);
};
return {