From a105219a62749bb2f2778e18d93f963ab954a606 Mon Sep 17 00:00:00 2001 From: kj1352 Date: Fri, 29 Oct 2021 20:19:08 +0530 Subject: [PATCH] Get revision questions --partial commit --- src/components/revise/Revise.tsx | 2 +- src/components/shelf-details/ShelfDetails.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/revise/Revise.tsx b/src/components/revise/Revise.tsx index 7d7a7dd..76bc49e 100644 --- a/src/components/revise/Revise.tsx +++ b/src/components/revise/Revise.tsx @@ -22,7 +22,7 @@ export const Revise: React.FC = () => { window.alert("Failed to get questions"); console.log(e); }); - }) + }, []); return
{ progressState === 'QUESTION' &&
diff --git a/src/components/shelf-details/ShelfDetails.tsx b/src/components/shelf-details/ShelfDetails.tsx index 0937084..7a3c172 100644 --- a/src/components/shelf-details/ShelfDetails.tsx +++ b/src/components/shelf-details/ShelfDetails.tsx @@ -13,7 +13,7 @@ import { ReactComponent as ShareIcon } from '../../assets/icons/share.svg'; import { ReactComponent as DeleteIcon } from '../../assets/icons/delete.svg'; import { PopoverOptions } from "../popover-options/PopoverOptions"; -import { MobileShelfWord, ShelfWord } from "../../shared/models/shelf"; +import { MobileShelfWord } from "../../shared/models/shelf"; import { MobileUser } from "../../shared/models/user"; export const ShelfDetails: React.FC = () => {