Skip to content

Commit

Permalink
Fix missing dependencies and imports (#9)
Browse files Browse the repository at this point in the history
* fix: added @joi/date library

* fix: added missing useState import
  fix: removed loading screen when auth token is empty
  • Loading branch information
AlbertoBaroso authored Nov 23, 2023
1 parent 4dc60a1 commit 0a4de94
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
7 changes: 4 additions & 3 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@casl/ability": "^6.3.3",
"@fastify/static": "^6.6.0",
"@hkrecruitment/shared": "workspace:*",
"@joi/date": "^2.1.0",
"@nestjs/common": "^9.0.0",
"@nestjs/config": "^2.2.0",
"@nestjs/core": "^9.0.0",
Expand All @@ -34,9 +35,9 @@
"@types/js-yaml": "^4.0.5",
"@types/passport-jwt": "^3.0.7",
"class-transformer": "^0.5.1",
"dotenv": "^16.0.3",
"google-auth-library": "^8.7.0",
"googleapis": "^118.0.0",
"dotenv": "^16.0.3",
"joi": "^17.7.0",
"js-yaml": "^4.1.0",
"jwks-rsa": "^3.0.0",
Expand All @@ -49,7 +50,6 @@
"webpack": "^5.75.0"
},
"devDependencies": {
"@types/multer": "^1.4.7",
"@automock/jest": "^1.0.1",
"@golevelup/ts-jest": "^0.3.6",
"@nestjs/cli": "^9.0.0",
Expand All @@ -59,6 +59,7 @@
"@swc/jest": "^0.2.26",
"@types/express": "^4.17.14",
"@types/jest": "28.1.8",
"@types/multer": "^1.4.7",
"@types/node": "^16.11.10",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.0.0",
Expand Down Expand Up @@ -99,7 +100,7 @@
],
"moduleNameMapper": {
"^@mocks/(.*)$": "<rootDir>/src/mocks/$1"
},
},
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
Expand Down
6 changes: 1 addition & 5 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "./App.css";
import "bootstrap/dist/css/bootstrap.min.css";
import React, { useEffect } from "react";
import React, { useEffect, useState } from "react";
import MyNavbar from "./MyNavbar";
import SignupForm from "./SignupForm";
import { Route } from "react-router-dom";
Expand Down Expand Up @@ -37,10 +37,6 @@ function App() {
}
}, [isAuthenticated]);

if (accessToken === "") {
return <div>Loading...</div>;
}

return (
<Routes>
<Route
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0a4de94

Please sign in to comment.