From 98b14196a49310febc51face0abf69edf32a0d55 Mon Sep 17 00:00:00 2001 From: Alireza khaji Date: Wed, 13 Jul 2022 16:43:49 +0430 Subject: [PATCH] userManagement, startExam api | 365 --- public/icons/table/ReactTable4arrow-icon.svg | 2 +- .../ReactTable4double-left-arrow copy.svg | 4 +- .../table/ReactTable4double-left-arrow.svg | 4 +- public/icons/table/ReactTable4edit.svg | 4 +- public/icons/table/ReactTable4filter.svg | 2 +- public/icons/table/ReactTable4left-arrow.svg | 2 +- public/icons/table/ReactTable4right-arrow.svg | 2 +- .../table/ReactTable4search-normal copy.svg | 4 +- .../icons/table/ReactTable4search-normal.svg | 4 +- public/icons/table/ReactTable4settings.svg | 4 +- .../table/ReactTable4zarbedar-icon copy.svg | 4 +- .../icons/table/ReactTable4zarbedar-icon.svg | 4 +- .../icons/table/ReactTable5zarbedar-icon.svg | 4 +- src/App.js | 22 +- src/components/Product/index.js | 4 +- src/components/ShoppingCart/index.js | 13 +- .../Layouts/Footer/components/ShowMoreRows.js | 4 +- .../Table/Layouts/Main/components/Table.js | 10 +- .../Layouts/Toolbar/components/GoToPage.js | 2 +- .../Layouts/Toolbar/components/Tabbar.js | 2 +- src/components/Table/Layouts/Toolbar/index.js | 2 +- .../Table/components/ColumnSearch.js | 2 +- .../components/Columns/components/Buttons.js | 8 +- .../Columns/components/EditButtons.js | 2 +- .../Table/components/Columns/index.js | 10 +- src/components/Table/index.js | 2 +- src/components/header/Header.js | 63 ++-- src/constants/defaultValues.js | 10 +- src/redux/actions/exam.js | 4 + src/redux/proxy.js | 2 +- src/redux/reducers/book.js | 14 +- src/redux/reducers/exam2.js | 5 +- src/view/Exam/EnterExam/desktop/index.js | 104 +++--- src/view/Exam/EnterExam/index.js | 10 +- src/view/Exam/index.js | 20 +- src/view/Exam2/Exam.js | 19 +- src/view/Exam2/Questions.js | 322 ++++++++++-------- src/view/addExam/views/ViewExamNote.js | 28 +- src/view/services/Budget.js | 12 +- src/view/services/PaymentBox.js | 4 +- src/view/services/service/index.js | 28 +- src/view/user-management/index.js | 10 +- src/view/user-management/layouts/Editor.js | 2 +- 43 files changed, 417 insertions(+), 367 deletions(-) diff --git a/public/icons/table/ReactTable4arrow-icon.svg b/public/icons/table/ReactTable4arrow-icon.svg index 589a9ba..e7378d5 100644 --- a/public/icons/table/ReactTable4arrow-icon.svg +++ b/public/icons/table/ReactTable4arrow-icon.svg @@ -1,6 +1,6 @@ - + diff --git a/public/icons/table/ReactTable4double-left-arrow copy.svg b/public/icons/table/ReactTable4double-left-arrow copy.svg index 03e2680..4e13fa1 100644 --- a/public/icons/table/ReactTable4double-left-arrow copy.svg +++ b/public/icons/table/ReactTable4double-left-arrow copy.svg @@ -1,11 +1,11 @@ - + - + diff --git a/public/icons/table/ReactTable4double-left-arrow.svg b/public/icons/table/ReactTable4double-left-arrow.svg index 03e2680..4e13fa1 100644 --- a/public/icons/table/ReactTable4double-left-arrow.svg +++ b/public/icons/table/ReactTable4double-left-arrow.svg @@ -1,11 +1,11 @@ - + - + diff --git a/public/icons/table/ReactTable4edit.svg b/public/icons/table/ReactTable4edit.svg index 85f109e..516dc4b 100644 --- a/public/icons/table/ReactTable4edit.svg +++ b/public/icons/table/ReactTable4edit.svg @@ -1,6 +1,6 @@ - - + + diff --git a/public/icons/table/ReactTable4filter.svg b/public/icons/table/ReactTable4filter.svg index 6b8c315..25ed414 100644 --- a/public/icons/table/ReactTable4filter.svg +++ b/public/icons/table/ReactTable4filter.svg @@ -1,3 +1,3 @@ - + diff --git a/public/icons/table/ReactTable4left-arrow.svg b/public/icons/table/ReactTable4left-arrow.svg index 3212c91..29cfa37 100644 --- a/public/icons/table/ReactTable4left-arrow.svg +++ b/public/icons/table/ReactTable4left-arrow.svg @@ -1,7 +1,7 @@ - + diff --git a/public/icons/table/ReactTable4right-arrow.svg b/public/icons/table/ReactTable4right-arrow.svg index 1cf09b1..f8a395a 100644 --- a/public/icons/table/ReactTable4right-arrow.svg +++ b/public/icons/table/ReactTable4right-arrow.svg @@ -1,6 +1,6 @@ - + diff --git a/public/icons/table/ReactTable4search-normal copy.svg b/public/icons/table/ReactTable4search-normal copy.svg index 49604d0..d745870 100644 --- a/public/icons/table/ReactTable4search-normal copy.svg +++ b/public/icons/table/ReactTable4search-normal copy.svg @@ -2,9 +2,9 @@ - + - + diff --git a/public/icons/table/ReactTable4search-normal.svg b/public/icons/table/ReactTable4search-normal.svg index 49604d0..d745870 100644 --- a/public/icons/table/ReactTable4search-normal.svg +++ b/public/icons/table/ReactTable4search-normal.svg @@ -2,9 +2,9 @@ - + - + diff --git a/public/icons/table/ReactTable4settings.svg b/public/icons/table/ReactTable4settings.svg index fea3eb9..011e853 100644 --- a/public/icons/table/ReactTable4settings.svg +++ b/public/icons/table/ReactTable4settings.svg @@ -3,11 +3,11 @@ - + - + diff --git a/public/icons/table/ReactTable4zarbedar-icon copy.svg b/public/icons/table/ReactTable4zarbedar-icon copy.svg index 682f7a5..471ee5e 100644 --- a/public/icons/table/ReactTable4zarbedar-icon copy.svg +++ b/public/icons/table/ReactTable4zarbedar-icon copy.svg @@ -1,6 +1,6 @@ - - + + diff --git a/public/icons/table/ReactTable4zarbedar-icon.svg b/public/icons/table/ReactTable4zarbedar-icon.svg index 682f7a5..471ee5e 100644 --- a/public/icons/table/ReactTable4zarbedar-icon.svg +++ b/public/icons/table/ReactTable4zarbedar-icon.svg @@ -1,6 +1,6 @@ - - + + diff --git a/public/icons/table/ReactTable5zarbedar-icon.svg b/public/icons/table/ReactTable5zarbedar-icon.svg index 682f7a5..471ee5e 100644 --- a/public/icons/table/ReactTable5zarbedar-icon.svg +++ b/public/icons/table/ReactTable5zarbedar-icon.svg @@ -1,6 +1,6 @@ - - + + diff --git a/src/App.js b/src/App.js index a27a216..27afeec 100644 --- a/src/App.js +++ b/src/App.js @@ -629,10 +629,14 @@ let data = [ function App() { let location = window.location.pathname; + const [dontShowNav,setDontShowNav]=useState(false); + useEffect(()=>{ + location = window.location.pathname; + }) // const {id} = useParams(); console.log(location); let buyPackagesData = null; - if (location.includes("buy-packages")) { + if (location?.includes("buy-packages")) { let pathList = location.split("/"); let id = pathList[pathList.length - 1]; for (let i = 0; i < data.length; i++) { @@ -644,8 +648,6 @@ function App() { } let loginStorage = localStorage.getItem("userData"); let userData = JSON.parse(loginStorage); - console.log(loginStorage == null); - console.log(userData); const [LOGIN, setLOGIN] = useState(loginStorage == undefined ? false : true); const activeLogin = () => { setLOGIN(true); @@ -669,7 +671,6 @@ function App() { const [ActiveUserFullInfo, setActiveUserFullInfo] = useState(false); const [UserFullInfoData, setUserFullInfoData] = useState(buyPackagesData); const showUserFullInfo = (data) => { - console.log(data); setActiveUserFullInfo(true); setUserFullInfoData(data); }; @@ -686,10 +687,8 @@ function App() {
- {LOGIN && location?.split("/")[3] !== "exam" && ( -
- )} - {LOGIN && location?.split("/")[3] !== "exam" &&