Skip to content

Commit ebb6c79

Browse files
committed
fix ESLint issues
1 parent d41adcb commit ebb6c79

File tree

5 files changed

+14
-24
lines changed

5 files changed

+14
-24
lines changed

frontend/src/app/jobs/[id]/@modal/default.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
import JobDetails from "@/components/jobs/details/job-details";
22

33
import { Modal, ScrollArea } from "@mantine/core";
4+
import { Job } from "@/types/job";
45

5-
const mockJobDetails = {
6+
const mockJobDetails: Job = {
67
id: "12345",
7-
title: "Frontend Developer",
8+
title: "Frontend Developer IF YOU ARE SEEING THIS, THE FETCH FAILED",
89
company: {
910
name: "Reserve Bank of Australiaaaaa",
1011
website: "https://techcorp.com",
1112
logo: "https://connect-assets.prosple.com/cdn/ff/LxBzK0I5Jr8vU1WcXce4lf873yPS9Q67rLOugmUXsJI/1568086775/public/styles/scale_and_crop_center_120x120/public/2019-09/Logo-australian-security-intelligence-organisation-asio-120x120-2019.jpg?itok=T1OmQAn3https://connect-assets.prosple.com/cdn/ff/Ayx_liRamnduFSV1FsycoYaBNWIUiZfwkbuzQXDplKU/1568591959/public/styles/scale_and_crop_center_80x80/public/2019-09/Logo-australian-security-intelligence-organisation-asio-120x120-2019.jpg",
1213
},
1314
description:
1415
'<h2>Your role</h2>\r\n\r\n<p><strong>Key responsibilities are as follows:</strong></p>\r\n\r\n<ul>\r\n\t<li>Deploy and configure business systems to meet client needs.</li>\r\n\t<li>Perform systems process mapping and conduct needs analysis sessions with clients.</li>\r\n\t<li>Ensure seamless integration with existing infrastructure and processes.</li>\r\n\t<li>Customize system settings to optimize performance and functionality.</li>\r\n\t<li>Ensure compliance with industry standards and best practices.</li>\r\n\t<li>Conduct thorough testing and validation of system implementations.</li>\r\n</ul>\r\n\r\n<h2>About you</h2>\r\n\r\n<p><strong>The ideal candidate will have:</strong></p>\r\n\r\n<ul>\r\n\t<li>A recent third-level qualification in a tech-focused discipline.</li>\r\n\t<li>A base-level understanding of system architecture and design principles.</li>\r\n\t<li>Exposure to database management and data integration techniques is a bonus.</li>\r\n\t<li>A willingness to learn and enthusiasm for digital trends.</li>\r\n</ul>\r\n\r\n<h2>Compensation &amp; benefits</h2>\r\n\r\n<p>Enjoy a competitive salary, free weekly lunches, social events, flexible working options, and modern offices in the CBD.</p>\r\n\r\n<h2>Training &amp; development</h2>\r\n\r\n<p>Benefit from mentoring, coaching, and both internal and external training programs to enhance your career skills.</p>\r\n\r\n<h2>Career progression</h2>\r\n\r\n<p>Opportunities for career advancement as BlueRock Digital continues to grow, with the potential to take on more senior roles.</p>\r\n\r\n<p><a href="https://airtable.com/appIhfpXSddESkxG1/pagK6WyrT72pcRfvo/form?prefill_Title=Graduate%20Consultant%20-%20Digital%20Systems&amp;prefill_Original%20Source%20Link=https%3A%2F%2Fapply.workable.com%2Fthe-blue-rock%2Fj%2F983307A690%2F" rel="noopener" target="_blank">Report this job</a></p>',
15-
type: "Graduate",
16+
type: "GRADUATE",
1617
locations: ["VIC", "NSW", "TAS", "OTHERS", "QLD"],
18+
industryField: "BIG_TECH",
19+
sourceUrls: ["https://www.seek.com.au/job/12345"],
1720
studyFields: ["IT & Computer Science", "Engineering & Mathematics"],
1821
workingRights: ["AUS_CITIZEN", "OTHER_RIGHTS"],
1922
applicationUrl: "https://careers.mcdonalds.com.au/",
@@ -31,7 +34,7 @@ export default function JobModal() {
3134
title="Job Details"
3235
scrollAreaComponent={ScrollArea}
3336
>
34-
<JobDetails {...mockJobDetails} />
37+
<JobDetails job={mockJobDetails} />
3538
</Modal>
3639
);
3740
}

frontend/src/context/jobs/filter-context.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// frontend/src/context/jobs/filter-context.tsx
44
import { createContext, useContext } from "react";
5-
import { JobFilters } from "@/types/filters";
5+
import { JobFilters, SortBy } from "@/types/filters";
66

77
export interface FilterState {
88
filters: JobFilters;
@@ -19,12 +19,12 @@ interface FilterContextType {
1919
export const initialState: FilterState = {
2020
filters: {
2121
search: "",
22-
studyFields: [],
22+
industryFields: [],
2323
jobTypes: [],
2424
locations: [],
2525
workingRights: [],
2626
page: 1,
27-
sortBy: "recent",
27+
sortBy: SortBy.RECENT,
2828
},
2929
totalJobs: 0,
3030
isLoading: false,

frontend/src/lib/mock-data.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ import { Job } from "@/types/job";
33
import jobsData from "./jobs.json";
44
import { transformJobData } from "./transform-job-data";
55

6+
// Honestly i don't know what this does and why is it here
7+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
8+
// @ts-expect-error
69
export const MOCK_JOBS: Job[] = (jobsData as never[]).map(transformJobData);

frontend/src/lib/parse-url-filters.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

frontend/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)