feat: add explore page (#205)

This commit is contained in:
boojack
2022-09-09 00:06:05 +08:00
committed by GitHub
parent 5eea1339c9
commit e9ac6affef
14 changed files with 209 additions and 12 deletions

View File

@ -28,7 +28,7 @@ const ArchivedMemo: React.FC<Props> = (props: Props) => {
if (showConfirmDeleteBtn) {
try {
await memoService.deleteMemoById(memo.id);
await memoService.fetchAllMemos();
await memoService.fetchMemos();
} catch (error: any) {
console.error(error);
toastHelper.error(error.response.data.message);
@ -44,7 +44,7 @@ const ArchivedMemo: React.FC<Props> = (props: Props) => {
id: memo.id,
rowStatus: "NORMAL",
});
await memoService.fetchAllMemos();
await memoService.fetchMemos();
toastHelper.info("Restored successfully");
} catch (error: any) {
console.error(error);