Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mark86092 authored Jul 6, 2024
2 parents 6a97125 + 87a597d commit d3ab117
Show file tree
Hide file tree
Showing 24 changed files with 329 additions and 816 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ import R from 'ramda';
import { InfoButton } from 'common/Modal';
import Table from 'common/table/Table';
import { pageType as pageTypeMapping } from 'constants/companyJobTitle';
import {
InfoSalaryModal,
InfoTimeModal,
} from '../../TimeAndSalary/common/InfoModal';
import styles from '../../TimeAndSalary/common/WorkingHourTable.module.css';
import { InfoSalaryModal, InfoTimeModal } from './InfoModal';
import styles from './WorkingHourTable.module.css';
import {
getNameAsJobTitle,
getNameAsCompanyName,
Expand Down
34 changes: 0 additions & 34 deletions src/components/TimeAndSalary/CallToShareData.js

This file was deleted.

23 changes: 0 additions & 23 deletions src/components/TimeAndSalary/MobileInfoButtons.js

This file was deleted.

40 changes: 0 additions & 40 deletions src/components/TimeAndSalary/MobileInfoButtons.module.css

This file was deleted.

26 changes: 0 additions & 26 deletions src/components/TimeAndSalary/common/AboutThisJobModal.js

This file was deleted.

Empty file.
107 changes: 0 additions & 107 deletions src/components/TimeAndSalary/common/DashBoardTable.js

This file was deleted.

78 changes: 0 additions & 78 deletions src/components/TimeAndSalary/common/DashBoardTable.module.css

This file was deleted.

33 changes: 0 additions & 33 deletions src/components/TimeAndSalary/common/formatter.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,9 @@
import React from 'react';
import { Link } from 'react-router-dom';
import { formatSalaryAmount, formatSalaryType } from 'common/formatter';
import MagnifierPlus from 'common/icons/MagnifierPlus';
import employmentType from 'constants/employmentType';
import styles from './formatter.module.css';

export const getCompany = item => (
<div>
<Link to={`/companies/${encodeURIComponent(item.company.name)}`}>
{item.company.name}
</Link>
</div>
);

export const getJobTitle = item => {
const { job_title: jobTitle, sector } = item;
return (
<div>
<Link to={`/job-titles/${encodeURIComponent(jobTitle.name)}`}>
{jobTitle.name}
</Link>{' '}
<span className={`pM ${styles.sector}`}>{sector}</span>
</div>
);
};

export const getNameAsCompanyName = (o, row) => (
<Link to={`/companies/${encodeURIComponent(o.name)}`}>
{row.originalCompanyName}{' '}
Expand Down Expand Up @@ -131,15 +110,3 @@ export const formatWage = wage => {

export const formatDate = ({ year, month }) =>
`${year}.${month >= 10 ? '' : 0}${month}`;

export const getAboutThisJobButton = toggleAboutThisJobModal => d => {
const aboutThisJob = d.about_this_job;
if (!aboutThisJob) return null;

const title = `${d.company.name} ${d.job_title.name}`;
return (
<div onClick={() => toggleAboutThisJobModal(aboutThisJob, title)}>
<MagnifierPlus style={{ width: 23, height: 23 }} />
</div>
);
};
Loading

0 comments on commit d3ab117

Please sign in to comment.