Skip to content

Commit

Permalink
Revert "Add "Create new job" button in JobPostingsPage"
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvin authored Sep 25, 2019
1 parent 58444a0 commit 3001efa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 48 deletions.
11 changes: 0 additions & 11 deletions src/modules/company/containers/CreateNewJob.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
import React from 'react'
import { Link } from 'react-router-dom'
import pageWrapper from '../../../shared/components/PageWrapper/PageWrapper'
import { EUserType } from '../../../../models/UserType'
import List from '../../../shared/components/List/List'
import { IJob } from '../../../../models/Job'
import { ListItemVM } from '../../../shared/components/ListItem/ListItemModels'
import pageWrapper from '../../shared/components/PageWrapper/PageWrapper'
import { EUserType } from '../../../models/UserType'
import List from '../../shared/components/List/List'
import { IJob } from '../../../models/Job'
import { ListItemVM } from '../../shared/components/ListItem/ListItemModels'
import { useQuery } from '@apollo/react-hooks'
import gql from 'graphql-tag'
import Loading from '../../../shared/components/Loading/Loading'
import Error from '../../../shared/components/Error/Error'
import Loading from '../../shared/components/Loading/Loading'
import Error from '../../shared/components/Error/Error'
import { useSelector } from 'react-redux'
import { userSelector } from '../../../../redux/slices/authenticationSlice'
import { IUser } from '../../../../models/User'
import './JobPostingsPage.scss'
import { userSelector } from '../../../redux/slices/authenticationSlice'
import { IUser } from '../../../models/User'

const JobPostingsPage = () => {
const user: IUser = useSelector(userSelector);
Expand Down Expand Up @@ -69,8 +67,7 @@ const JobPostingsPage = () => {
if (error) return <Error />;

return (
<div className="job-postings">
<Link className="job-postings__new" to="/company/new">Create new job</Link>
<div>
<List items={buildJobPostings(data.jobs)}></List>
</div>
)
Expand Down

This file was deleted.

4 changes: 1 addition & 3 deletions src/modules/core/containers/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ import Navigation from '../Navigation/Navigation';
import PotentialJobsPage from '../../../seeker/containers/PotentialJobsPage/PotentialJobsPage';
import PotentialJobDetailsPage from '../../../seeker/containers/PotentialJobDetailsPage/PotentialJobDetailsPage';
import Header from '../../components/Header/Header';
import JobPostingsPage from '../../../company/containers/JobPostingsPage/JobPostingsPage';
import JobPostingsPage from '../../../company/containers/JobPostingsPage';
import MatchedJobDetailsPage from '../../../seeker/containers/MatchedJobDetailsPage/MatchedJobDetailsPage';
import NotFoundPage from '../NotFoundPage/NotFoundPage';
import JobPostingDetailsPage from '../../../company/containers/JobPostingDetailsPage';
import CreateNewJob from '../../../company/containers/CreateNewJob';

library.add(far, fas);

Expand Down Expand Up @@ -70,7 +69,6 @@ const App: React.FC = () => {
<Route path="/login" component={LoginPage}></Route>
<Route path="/company/jobs/:jobId" component={JobPostingDetailsPage}></Route>
<Route path="/company/jobs" component={JobPostingsPage}></Route>
<Route path="/company/new" component={CreateNewJob}></Route>
<Route exact path="/" render={() => {
if (user && user.isCompany) {
return (<Redirect to="/company/jobs" />)
Expand Down

0 comments on commit 3001efa

Please sign in to comment.