Skip to content

Commit f804776

Browse files
committed
refactor
1 parent 38f1a84 commit f804776

File tree

3 files changed

+17
-27
lines changed

3 files changed

+17
-27
lines changed

src/components/Recruitments/RecruitmentCards.jsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
import React, { Component } from "react";
2-
import { useHistory, Link } from "react-router-dom";
3-
import {
4-
Grid,
5-
Segment,
6-
Header,
7-
Image,
8-
Icon,
9-
Card,
10-
Button,
11-
Visibility,
12-
Transition,
13-
} from "semantic-ui-react";
2+
import { Grid, Header, Icon } from "semantic-ui-react";
143
import "./RecruitmentCard.css";
154

165
var x = window.matchMedia("(max-width: 900px)");

src/pages/Gallery/Gallery.jsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { useState } from "react";
2+
// import { useHistory } from "react-router-dom";
23
import { Segment } from "semantic-ui-react";
34
import ImageGallery from "react-image-gallery";
45
import { useAsyncEffect } from "use-async-effect";
@@ -20,6 +21,8 @@ const axios = require("axios");
2021
function Gallery() {
2122
const [images, setImages] = useState(null);
2223

24+
// const history = useHistory();
25+
2326
useAsyncEffect(async () => {
2427
let shouldCancel = false;
2528

@@ -51,15 +54,18 @@ function Gallery() {
5154
return () => (shouldCancel = true);
5255
}, []);
5356

57+
// const handleBack = () => {
58+
// history.push("/");
59+
// };
60+
61+
// const sections = [
62+
// { key: "Home", content: "Home", link: true, onClick: handleBack },
63+
// { key: "Gallery", content: "Gallery", active: true },
64+
// ];
65+
5466
return (
5567
<div className="galleryDiv">
56-
{/* <div className='loadScreenGallery'>
57-
<Icon size='massive' color='red' loading name='spinner' />
58-
</div> */}
5968
<Segment inverted>
60-
{/* <Label color='red' attached='top left'>
61-
<Breadcrumb icon='right angle' sections={sections} />
62-
</Label> */}
6369
{images ? (
6470
<ImageGallery
6571
items={images}

src/pages/Recruitments/RecruitmentForm.jsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import React, { Component } from "react";
2-
import { useHistory, Link } from "react-router-dom";
3-
import { Grid, Segment, Header, Image, Label, Embed } from "semantic-ui-react";
42
import "./Recruitments.css";
5-
import RecruitmentCards from "../../components/Recruitments/RecruitmentCards";
6-
7-
var x = window.matchMedia("(max-width: 900px)");
83

94
export default class RecruitmentForm extends Component {
105
state = {
@@ -24,12 +19,13 @@ export default class RecruitmentForm extends Component {
2419
</Label>
2520
<br></br>
2621
<iframe
22+
title="recruitmentForm"
2723
width="100%"
2824
height="640px"
2925
src="https://flzu5mig2qj.typeform.com/to/ejsxYIah"
30-
frameborder="0"
31-
marginwidth="0"
32-
marginheight="0"
26+
frameBorder="0"
27+
marginWidth="0"
28+
marginHeight="0"
3329
style={{
3430
border: "0px",
3531
scrollbarWidth: "0px",
@@ -39,7 +35,6 @@ export default class RecruitmentForm extends Component {
3935
allowfullscreen
4036
webkitallowfullscreen
4137
mozallowfullscreen
42-
msallowfullscreen
4338
>
4439
{" "}
4540
</iframe>

0 commit comments

Comments
 (0)