Skip to content

Commit

Permalink
sorting candidates list, matching score - round to the whole number, …
Browse files Browse the repository at this point in the history
…tooltip subst. for HtmlTooltip designed
  • Loading branch information
Corrigan14 committed Nov 1, 2023
1 parent de579e0 commit 4be4184
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"format": "npx prettier . --write",
"post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest",
"gcbuild": "gcloud builds submit --tag gcr.io/enter-400508/nextjsapp --project enter-400508 .",
"gcdeploy": "gcloud run deploy nextjsapp --image gcr.io/enter-400508/nextjsapp --project enter-400508"
"gcdeploy": "gcloud run deploy nextjsapp --image gcr.io/enter-400508/nextjsapp --project enter-400508 --region europe-west1"
},
"dependencies": {
"@emotion/cache": "latest",
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/app/(site)/company/candidates/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { useMatchedCandidates } from "@/app/(site)/company/candidates/useMatched
import { CandidateForJobList } from "@/app/(site)/company/candidates/types";
import { CircularProgress } from "@mui/material";
import { SignInProviderContext } from "@/components/providers/SignInProvider";
import { useSearchParams } from "next/navigation";
import IFuseOptions = Fuse.IFuseOptions;

const options: IFuseOptions<CandidateForJobList> = {
Expand All @@ -26,9 +27,10 @@ const options: IFuseOptions<CandidateForJobList> = {
],
};

export default function CandidatesPage(ctx: any) {
export default function CandidatesPage() {
const searchParams = useSearchParams();
const [searchTerm, setSearchTerm] = useState<string>("");
const jobId = ctx.searchParams.jobid || "all";
const jobId = searchParams.get("jobid") || "all";
const signInContext = useContext(SignInProviderContext);
const { data: listOfCandidates = [], isLoading } = useMatchedCandidates(
jobId,
Expand Down

0 comments on commit 4be4184

Please sign in to comment.