From 0048727fa181e1005dc53e5811085b0a440d6760 Mon Sep 17 00:00:00 2001 From: Gorbachev Egor <7gorbachevm@gmail.com> Date: Wed, 10 Jan 2024 20:19:24 +0700 Subject: [PATCH] Add cards to review when opening folder by link --- src/screens/folder-review/folder-preview.tsx | 24 +++++++++----------- src/store/deck-list-store.ts | 10 ++++++++ 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/src/screens/folder-review/folder-preview.tsx b/src/screens/folder-review/folder-preview.tsx index 2bccc065..fe8e32ab 100644 --- a/src/screens/folder-review/folder-preview.tsx +++ b/src/screens/folder-review/folder-preview.tsx @@ -176,19 +176,17 @@ export const FolderPreview = observer(() => { {t("share")} )} - {deckListStore.canEditFolder && ( - { - showConfirm(t("delete_folder_confirm")).then(() => { - deckListStore.deleteFolder(); - }); - }} - > - {t("delete")} - - )} + { + showConfirm(t("delete_folder_confirm")).then(() => { + deckListStore.deleteFolder(); + }); + }} + > + {t("delete")} +
({ + id: card.id, + deck_id: deck.id, + type: "new", + })), + ); } screenStore.go({ type: "folderPreview", folderId: folder.id }); }