Skip to content

Commit a9e81df

Browse files
Modification Caused due to new Prettier Rules
1 parent 5fae0fb commit a9e81df

28 files changed

+740
-712
lines changed

.prettierrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"arrowParens": "avoid",
66
"semi": false,
77
"react/jsx-max-props-per-line": [1, { "when": "always" }]
8-
}
8+
}

gatsby-node.js

+20-16
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
exports.onCreateWebpackConfig = ({ stage, actions, getConfig }) => {
2-
if (stage === 'build-html') {
3-
actions.setWebpackConfig({
4-
// Don't bundle modules that reference browser globals such as `window` and `IDBIndex` during SSR.
5-
// See: https://github.com/gatsbyjs/gatsby/issues/17725
6-
externals: getConfig().externals.concat(function(_context, request, callback) {
7-
// Exclude bundling firebase* and react-firebase*
8-
// These are instead required at runtime.
9-
if (/^@?(react-)?firebase(.*)/.test(request)) {
10-
console.log('Excluding bundling of: ' + request);
11-
return callback(null, 'umd ' + request);
12-
}
13-
callback();
14-
}),
15-
});
16-
}
17-
};
2+
if (stage === 'build-html') {
3+
actions.setWebpackConfig({
4+
// Don't bundle modules that reference browser globals such as `window` and `IDBIndex` during SSR.
5+
// See: https://github.com/gatsbyjs/gatsby/issues/17725
6+
externals: getConfig().externals.concat(function (
7+
_context,
8+
request,
9+
callback
10+
) {
11+
// Exclude bundling firebase* and react-firebase*
12+
// These are instead required at runtime.
13+
if (/^@?(react-)?firebase(.*)/.test(request)) {
14+
console.log('Excluding bundling of: ' + request)
15+
return callback(null, 'umd ' + request)
16+
}
17+
callback()
18+
}),
19+
})
20+
}
21+
}

src/Routes.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/* eslint-disable react/no-array-index-key */
2-
import React, { lazy, Suspense, Fragment } from "react"
3-
import { Switch, Redirect, Route } from "react-router-dom"
4-
import HomeLayout from "./layouts/HomeLayout"
5-
import AnotherLayout from "./layouts/AnotherLayout"
2+
import React, { lazy, Suspense, Fragment } from 'react'
3+
import { Switch, Redirect, Route } from 'react-router-dom'
4+
import HomeLayout from './layouts/HomeLayout'
5+
import AnotherLayout from './layouts/AnotherLayout'
66

77
const routesConfig = [
88
{
9-
path: "/",
10-
component: lazy(() => import("./layouts/HomeLayout")),
9+
path: '/',
10+
component: lazy(() => import('./layouts/HomeLayout')),
1111
},
1212
{
1313
exact: true,
14-
path: "/another",
15-
component: lazy(() => import("./layouts/AnotherLayout")),
14+
path: '/another',
15+
component: lazy(() => import('./layouts/AnotherLayout')),
1616
},
1717
]
1818

src/components/choices.js

+53-51
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import React from "react"
2-
import { makeStyles } from "@material-ui/core/styles"
3-
import { Grid, Typography, CardMedia, Box } from "@material-ui/core"
1+
import React from 'react'
2+
import { makeStyles } from '@material-ui/core/styles'
3+
import { Grid, Typography, CardMedia, Box } from '@material-ui/core'
44

5-
import Img from "gatsby-image"
6-
import { StaticQuery, graphql } from "gatsby"
5+
import Img from 'gatsby-image'
6+
import { StaticQuery, graphql } from 'gatsby'
77

88
const useStyles = makeStyles(theme => ({
99
icon: {
1010
marginRight: theme.spacing(2),
1111
},
1212
domainsContent: {
1313
padding: theme.spacing(5, 5, 5),
14-
[theme.breakpoints.down("md")]: {
14+
[theme.breakpoints.down('md')]: {
1515
padding: theme.spacing(5, 3, 5),
1616
},
1717
},
@@ -20,53 +20,53 @@ const useStyles = makeStyles(theme => ({
2020
paddingBottom: theme.spacing(8),
2121
},
2222
card: {
23-
height: "100%",
24-
display: "flex",
25-
flexDirection: "column",
26-
borderRadius: "10px",
23+
height: '100%',
24+
display: 'flex',
25+
flexDirection: 'column',
26+
borderRadius: '10px',
2727
},
2828
cardMedia: {
29-
width: "100%",
30-
height: "auto",
29+
width: '100%',
30+
height: 'auto',
3131
// paddingTop: "56.25%", // 16:9
3232
},
3333
cardContent: {
3434
flexGrow: 1,
3535
},
3636
chipActions: {
37-
display: "block",
37+
display: 'block',
3838
},
3939
chip: {
40-
margin: "8px 0 3px 8px",
40+
margin: '8px 0 3px 8px',
4141
},
4242
extraMargin: {
43-
marginTop: "15px",
44-
marginBottom: "0",
43+
marginTop: '15px',
44+
marginBottom: '0',
4545
},
4646
btn: {
47-
textTransform: "none",
47+
textTransform: 'none',
4848
},
4949
root: {
5050
backgroundColor: theme.palette.primary.main,
5151
paddingTop: theme.spacing(3),
5252
paddingBottom: theme.spacing(3),
53-
"& dt": {
53+
'& dt': {
5454
marginTop: theme.spacing(2),
5555
},
56-
color: "#FFF",
56+
color: '#FFF',
5757
},
5858
paddingCls: {
59-
paddingLeft: "10px",
60-
paddingRight: "10px",
59+
paddingLeft: '10px',
60+
paddingRight: '10px',
6161
},
6262
paddingClsxs: {
6363
padding: 0,
6464
},
6565
iconSize: {
66-
fontSize: "32px",
66+
fontSize: '32px',
6767
},
6868
text: {
69-
color: "#FFFFFF",
69+
color: '#FFFFFF',
7070
},
7171
avatarLarge: {
7272
width: theme.spacing(16),
@@ -75,11 +75,11 @@ const useStyles = makeStyles(theme => ({
7575
},
7676

7777
avatarGrid: {
78-
display: "flex",
79-
flexDirection: "column",
80-
alignItems: "center",
81-
justifyContent: "center",
82-
padding: "5px",
78+
display: 'flex',
79+
flexDirection: 'column',
80+
alignItems: 'center',
81+
justifyContent: 'center',
82+
padding: '5px',
8383
},
8484
}))
8585

@@ -111,38 +111,40 @@ export default function Choices() {
111111
const choiceImages = data.choiceImages
112112

113113
const leftImage = choiceImages.nodes.find(
114-
node => node.childImageSharp.fluid.originalName === "left.png"
114+
node => node.childImageSharp.fluid.originalName === 'left.png'
115115
)
116116

117117
const rightImage = choiceImages.nodes.find(
118-
node => node.childImageSharp.fluid.originalName === "right.png"
118+
node => node.childImageSharp.fluid.originalName === 'right.png'
119119
)
120120

121121
return (
122122
<Grid container className={classes.domainsContent}>
123123
<Grid item lg={12} md={12} sm={12} xs={12}>
124-
<Typography
125-
variant="h2"
126-
align="center"
127-
color="textPrimary"
128-
style={{
129-
marginBottom: "24px",
130-
}}
131-
>
132-
Make the Best Choice for Your Junior
133-
</Typography>
124+
<Typography
125+
variant="h2"
126+
align="center"
127+
color="textPrimary"
128+
style={{
129+
marginBottom: '24px',
130+
}}
131+
>
132+
Make the Best Choice for Your Junior
133+
</Typography>
134134

135-
<Typography
136-
variant="body1"
137-
align="center"
138-
style={{
139-
marginBottom: "24px",
140-
color: "#FF4C00",
141-
}}
142-
>
143-
<Box>Give your junior chance to try the best, easing the journey</Box>
144-
<Box>to get him/her closer to their dream </Box>
145-
</Typography>
135+
<Typography
136+
variant="body1"
137+
align="center"
138+
style={{
139+
marginBottom: '24px',
140+
color: '#FF4C00',
141+
}}
142+
>
143+
<Box>
144+
Give your junior chance to try the best, easing the journey
145+
</Box>
146+
<Box>to get him/her closer to their dream </Box>
147+
</Typography>
146148
</Grid>
147149

148150
<Grid container lg={12} md={12} sm={12} xs={12}>

0 commit comments

Comments
 (0)