Skip to content

Commit

Permalink
Modification Caused due to new Prettier Rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek-kumar09 committed Oct 30, 2020
1 parent 5fae0fb commit a9e81df
Show file tree
Hide file tree
Showing 28 changed files with 740 additions and 712 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"arrowParens": "avoid",
"semi": false,
"react/jsx-max-props-per-line": [1, { "when": "always" }]
}
}
36 changes: 20 additions & 16 deletions gatsby-node.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
exports.onCreateWebpackConfig = ({ stage, actions, getConfig }) => {
if (stage === 'build-html') {
actions.setWebpackConfig({
// Don't bundle modules that reference browser globals such as `window` and `IDBIndex` during SSR.
// See: https://github.com/gatsbyjs/gatsby/issues/17725
externals: getConfig().externals.concat(function(_context, request, callback) {
// Exclude bundling firebase* and react-firebase*
// These are instead required at runtime.
if (/^@?(react-)?firebase(.*)/.test(request)) {
console.log('Excluding bundling of: ' + request);
return callback(null, 'umd ' + request);
}
callback();
}),
});
}
};
if (stage === 'build-html') {
actions.setWebpackConfig({
// Don't bundle modules that reference browser globals such as `window` and `IDBIndex` during SSR.
// See: https://github.com/gatsbyjs/gatsby/issues/17725
externals: getConfig().externals.concat(function (
_context,
request,
callback
) {
// Exclude bundling firebase* and react-firebase*
// These are instead required at runtime.
if (/^@?(react-)?firebase(.*)/.test(request)) {
console.log('Excluding bundling of: ' + request)
return callback(null, 'umd ' + request)
}
callback()
}),
})
}
}
16 changes: 8 additions & 8 deletions src/Routes.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/* eslint-disable react/no-array-index-key */
import React, { lazy, Suspense, Fragment } from "react"
import { Switch, Redirect, Route } from "react-router-dom"
import HomeLayout from "./layouts/HomeLayout"
import AnotherLayout from "./layouts/AnotherLayout"
import React, { lazy, Suspense, Fragment } from 'react'
import { Switch, Redirect, Route } from 'react-router-dom'
import HomeLayout from './layouts/HomeLayout'
import AnotherLayout from './layouts/AnotherLayout'

const routesConfig = [
{
path: "/",
component: lazy(() => import("./layouts/HomeLayout")),
path: '/',
component: lazy(() => import('./layouts/HomeLayout')),
},
{
exact: true,
path: "/another",
component: lazy(() => import("./layouts/AnotherLayout")),
path: '/another',
component: lazy(() => import('./layouts/AnotherLayout')),
},
]

Expand Down
104 changes: 53 additions & 51 deletions src/components/choices.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import React from "react"
import { makeStyles } from "@material-ui/core/styles"
import { Grid, Typography, CardMedia, Box } from "@material-ui/core"
import React from 'react'
import { makeStyles } from '@material-ui/core/styles'
import { Grid, Typography, CardMedia, Box } from '@material-ui/core'

import Img from "gatsby-image"
import { StaticQuery, graphql } from "gatsby"
import Img from 'gatsby-image'
import { StaticQuery, graphql } from 'gatsby'

const useStyles = makeStyles(theme => ({
icon: {
marginRight: theme.spacing(2),
},
domainsContent: {
padding: theme.spacing(5, 5, 5),
[theme.breakpoints.down("md")]: {
[theme.breakpoints.down('md')]: {
padding: theme.spacing(5, 3, 5),
},
},
Expand All @@ -20,53 +20,53 @@ const useStyles = makeStyles(theme => ({
paddingBottom: theme.spacing(8),
},
card: {
height: "100%",
display: "flex",
flexDirection: "column",
borderRadius: "10px",
height: '100%',
display: 'flex',
flexDirection: 'column',
borderRadius: '10px',
},
cardMedia: {
width: "100%",
height: "auto",
width: '100%',
height: 'auto',
// paddingTop: "56.25%", // 16:9
},
cardContent: {
flexGrow: 1,
},
chipActions: {
display: "block",
display: 'block',
},
chip: {
margin: "8px 0 3px 8px",
margin: '8px 0 3px 8px',
},
extraMargin: {
marginTop: "15px",
marginBottom: "0",
marginTop: '15px',
marginBottom: '0',
},
btn: {
textTransform: "none",
textTransform: 'none',
},
root: {
backgroundColor: theme.palette.primary.main,
paddingTop: theme.spacing(3),
paddingBottom: theme.spacing(3),
"& dt": {
'& dt': {
marginTop: theme.spacing(2),
},
color: "#FFF",
color: '#FFF',
},
paddingCls: {
paddingLeft: "10px",
paddingRight: "10px",
paddingLeft: '10px',
paddingRight: '10px',
},
paddingClsxs: {
padding: 0,
},
iconSize: {
fontSize: "32px",
fontSize: '32px',
},
text: {
color: "#FFFFFF",
color: '#FFFFFF',
},
avatarLarge: {
width: theme.spacing(16),
Expand All @@ -75,11 +75,11 @@ const useStyles = makeStyles(theme => ({
},

avatarGrid: {
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
padding: "5px",
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
padding: '5px',
},
}))

Expand Down Expand Up @@ -111,38 +111,40 @@ export default function Choices() {
const choiceImages = data.choiceImages

const leftImage = choiceImages.nodes.find(
node => node.childImageSharp.fluid.originalName === "left.png"
node => node.childImageSharp.fluid.originalName === 'left.png'
)

const rightImage = choiceImages.nodes.find(
node => node.childImageSharp.fluid.originalName === "right.png"
node => node.childImageSharp.fluid.originalName === 'right.png'
)

return (
<Grid container className={classes.domainsContent}>
<Grid item lg={12} md={12} sm={12} xs={12}>
<Typography
variant="h2"
align="center"
color="textPrimary"
style={{
marginBottom: "24px",
}}
>
Make the Best Choice for Your Junior
</Typography>
<Typography
variant="h2"
align="center"
color="textPrimary"
style={{
marginBottom: '24px',
}}
>
Make the Best Choice for Your Junior
</Typography>

<Typography
variant="body1"
align="center"
style={{
marginBottom: "24px",
color: "#FF4C00",
}}
>
<Box>Give your junior chance to try the best, easing the journey</Box>
<Box>to get him/her closer to their dream </Box>
</Typography>
<Typography
variant="body1"
align="center"
style={{
marginBottom: '24px',
color: '#FF4C00',
}}
>
<Box>
Give your junior chance to try the best, easing the journey
</Box>
<Box>to get him/her closer to their dream </Box>
</Typography>
</Grid>

<Grid container lg={12} md={12} sm={12} xs={12}>
Expand Down
Loading

0 comments on commit a9e81df

Please sign in to comment.