From 55fa2731ec21689656e1558d347316a67e0ecd2f Mon Sep 17 00:00:00 2001 From: Virendra Arekar Date: Thu, 1 Aug 2024 15:49:14 +0530 Subject: [PATCH] Fix the warning --- .vscode/settings.json | 22 +++ package-lock.json | 23 +++ package.json | 1 + public/index.html | 4 +- src/Components/Layout/index.js | 167 ++++++++--------- src/Components/ModalNavbar/index.js | 151 ++++++++-------- src/Components/Navbar/index.js | 266 ++++++++++++++-------------- src/Components/Select/index.js | 2 +- src/Navigation/protectedRoute.js | 3 +- src/Screens/Auth/Login/index.js | 261 +++++++++++++++++---------- src/Screens/Dashboard/index.js | 2 + src/Screens/Panel/index.js | 57 +++--- src/Services/apiService.js | 45 ++++- src/index.js | 19 +- src/utils/helper.js | 2 +- yarn.lock | 16 +- 16 files changed, 616 insertions(+), 425 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..db920b2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,22 @@ +{ + "workbench.colorCustomizations": { + "activityBar.activeBackground": "#fbed80", + "activityBar.background": "#fbed80", + "activityBar.foreground": "#15202b", + "activityBar.inactiveForeground": "#15202b99", + "activityBarBadge.background": "#06b9a5", + "activityBarBadge.foreground": "#15202b", + "commandCenter.border": "#15202b99", + "sash.hoverBorder": "#fbed80", + "statusBar.background": "#f9e64f", + "statusBar.foreground": "#15202b", + "statusBarItem.hoverBackground": "#f7df1e", + "statusBarItem.remoteBackground": "#f9e64f", + "statusBarItem.remoteForeground": "#15202b", + "titleBar.activeBackground": "#f9e64f", + "titleBar.activeForeground": "#15202b", + "titleBar.inactiveBackground": "#f9e64f99", + "titleBar.inactiveForeground": "#15202b99" + }, + "peacock.remoteColor": "#f9e64f" +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 59a3194..2346104 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,6 +29,7 @@ "react-router-dom": "^6.23.1", "react-scripts": "5.0.1", "react-select": "^5.8.0", + "react-toastify": "^10.0.5", "sass": "^1.77.4", "swr": "^2.2.5", "web-vitals": "^2.1.4" @@ -9078,6 +9079,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", @@ -26336,6 +26346,19 @@ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" } }, + "node_modules/react-toastify": { + "version": "10.0.5", + "resolved": "https://registry.npmjs.org/react-toastify/-/react-toastify-10.0.5.tgz", + "integrity": "sha512-mNKt2jBXJg4O7pSdbNUfDdTsK9FIdikfsIE/yUCxbAEXl4HMyJaivrVFcn3Elvt5xvCQYhUZm+hqTIu1UXM3Pw==", + "license": "MIT", + "dependencies": { + "clsx": "^2.1.0" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" + } + }, "node_modules/react-transition-group": { "version": "4.4.5", "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", diff --git a/package.json b/package.json index 034c896..53354d8 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "react-router-dom": "^6.23.1", "react-scripts": "5.0.1", "react-select": "^5.8.0", + "react-toastify": "^10.0.5", "sass": "^1.77.4", "swr": "^2.2.5", "web-vitals": "^2.1.4" diff --git a/public/index.html b/public/index.html index cde1a40..bbb1c6d 100644 --- a/public/index.html +++ b/public/index.html @@ -12,12 +12,12 @@ /> - + - +