Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit d5fb4b3

Browse files
npm run format
1 parent a67dc37 commit d5fb4b3

File tree

7 files changed

+41
-34
lines changed

7 files changed

+41
-34
lines changed

src/data/workshopData/workshopDetail.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ const worksop = {
22
policies: {
33
title: 'Workshop Policies',
44
body: [
5-
"What is Lorem Ipsum Lorem Ipsum is simply dummy text of text of text of ",
6-
"What is Lorem Ipsum Lorem Ipsum is simply text of",
7-
"What is Lorem Ipsum Lorem Ipsum is simply dummy text text of",
8-
"What is Lorem Ipsum Lorem Ipsum text of"
5+
'What is Lorem Ipsum Lorem Ipsum is simply dummy text of text of text of ',
6+
'What is Lorem Ipsum Lorem Ipsum is simply text of',
7+
'What is Lorem Ipsum Lorem Ipsum is simply dummy text text of',
8+
'What is Lorem Ipsum Lorem Ipsum text of'
99
]
1010
},
1111
must_do: {
1212
title: 'Workshop Requestors Must Do',
1313
body: [
14-
"What is Lorem Ipsum Lorem Ipsum is simply dummy text of text of text of of text of text of of text of text of sfsfterwdvyh",
15-
"What is Lorem Ipsum Lorem Ipsum is simply text of",
16-
"What is Lorem Ipsum Lorem Ipsum is simply dummy text text of",
17-
"What is Lorem Ipsum Lorem Ipsum text of of text of text of of text of text of"
14+
'What is Lorem Ipsum Lorem Ipsum is simply dummy text of text of text of of text of text of of text of text of sfsfterwdvyh',
15+
'What is Lorem Ipsum Lorem Ipsum is simply text of',
16+
'What is Lorem Ipsum Lorem Ipsum is simply dummy text text of',
17+
'What is Lorem Ipsum Lorem Ipsum text of of text of text of of text of text of'
1818
]
1919
},
2020
projects: [
@@ -41,7 +41,7 @@ const worksop = {
4141
{
4242
title: 'Mobile App Development',
4343
img: '/static/images/courses/projects/split.png'
44-
},
44+
}
4545
]
4646
};
4747

src/views/pages/WorkshopView/Form.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ const useStyles = makeStyles(theme => ({
5050
}
5151
}));
5252

53-
function Form({...rest}) {
53+
function Form({ ...rest }) {
5454
const classes = useStyles();
5555

5656
const [formData, updateFormData] = useState({});
5757
const [submitting, setSubmitting] = useState(0);
58-
const [selectedDate, setSelectedDate] = useState(new Date());
58+
const [selectedDate, setSelectedDate] = useState(new Date());
5959

6060
const handleDateChange = date => {
6161
setSelectedDate(date);
@@ -231,15 +231,12 @@ function Form({...rest}) {
231231
/>
232232
</MuiPickersUtilsProvider>
233233

234-
<div style={{padding: '30px 0 15px'}}
235-
><Typography
236-
style={{margin: 0}}
237-
variant="caption"
238-
color="initial"
239-
>
240-
By continuing, you agree to the Code For Cause Terms of Use and
241-
Privacy Policy
242-
</Typography></div>
234+
<div style={{ padding: '30px 0 15px' }}>
235+
<Typography style={{ margin: 0 }} variant="caption" color="initial">
236+
By continuing, you agree to the Code For Cause Terms of Use and
237+
Privacy Policy
238+
</Typography>
239+
</div>
243240

244241
{submitting === 0 ? (
245242
<ButtonComponent

src/views/pages/WorkshopView/HeadWithBulletPoints.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ const useStyles = makeStyles(() => ({
55
root: {},
66
heading: {
77
paddingTop: '0px',
8-
paddingBottom: '40px',
8+
paddingBottom: '40px'
99
},
1010
bullets: {
11-
color: '#180255',
12-
11+
color: '#180255'
1312
},
1413
bulletPoints: {
1514
padding: '15px'
@@ -23,12 +22,18 @@ function HeadWithBulletPoints({ details }) {
2322
const classes = useStyles();
2423
return (
2524
<div>
26-
<Typography className={classes.heading} variant="h2">{details.title}</Typography>
25+
<Typography className={classes.heading} variant="h2">
26+
{details.title}
27+
</Typography>
2728
<ul className={classes.extraPadding}>
2829
{details.body.map(point => {
2930
return (
3031
<li className={classes.bullets}>
31-
<Typography className={classes.bulletPoints} variant="body1" color="textPrimary">
32+
<Typography
33+
className={classes.bulletPoints}
34+
variant="body1"
35+
color="textPrimary"
36+
>
3237
{point}
3338
</Typography>
3439
</li>

src/views/pages/WorkshopView/Hero.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import RegisterWorkshop from './RegisterWorkshop';
44
import HeroWithOneButton from '../../../components/Hero/HeroWithOneButton';
5-
import { verticalGradient } from '../../../constants'
6-
import { makeStyles } from '@material-ui/core'
5+
import { verticalGradient } from '../../../constants';
6+
import { makeStyles } from '@material-ui/core';
77

88
const useStyles = makeStyles(() => ({
99
root: {

src/views/pages/WorkshopView/RegisterWorkshop.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React from 'react';
22
import ButtonComponent from '../../../components/Button/ButtonComponent';
33

4-
const webinarApplicationUrl = "https://docs.google.com/forms/d/e/1FAIpQLSck4rCrdf4VCfnuHuv9CKcyVKLq0MpA132OQhktlJxwxqrdHw/viewform";
4+
const webinarApplicationUrl =
5+
'https://docs.google.com/forms/d/e/1FAIpQLSck4rCrdf4VCfnuHuv9CKcyVKLq0MpA132OQhktlJxwxqrdHw/viewform';
56

67
function RegisterWorkshopButton({ className }) {
78
return (

src/views/pages/WorkshopView/WorkshopContent.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,13 @@ export default function WorkshopContent({ details }) {
9797
<Projects projects={course.projects} flat={true} />
9898
</Hidden> */}
9999
{/* <Topics course={details} /> */}
100-
<HeadWithBulletPoints details={details.policies}></HeadWithBulletPoints>
101-
<HeadWithBulletPoints details={details.must_do}></HeadWithBulletPoints>
102-
<Form/>
100+
<HeadWithBulletPoints
101+
details={details.policies}
102+
></HeadWithBulletPoints>
103+
<HeadWithBulletPoints
104+
details={details.must_do}
105+
></HeadWithBulletPoints>
106+
<Form />
103107
</Box>
104108

105109
<Hidden smDown>

src/views/pages/WorkshopView/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from 'react';
22
import Hero from './Hero';
3-
import Footer from '../common/Footer'
3+
import Footer from '../common/Footer';
44
import { makeStyles } from '@material-ui/core';
55
import Page from 'src/components/Page';
66
import WorkshopContent from './WorkshopContent';
7-
import content from '../../../data/workshopData/workshopDetail'
7+
import content from '../../../data/workshopData/workshopDetail';
88

99
const useStyles = makeStyles(() => ({
1010
root: {}
@@ -16,7 +16,7 @@ function WorkshopView() {
1616
return (
1717
<Page className={classes.root} title="Courses">
1818
<Hero />
19-
<WorkshopContent details={content}/>
19+
<WorkshopContent details={content} />
2020
<Footer />
2121
</Page>
2222
);

0 commit comments

Comments
 (0)