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

Commit e6f640a

Browse files
authored
Removing all the unused dependencies (#152) (#196)
* Removing all the unused dependencies (#152) * Adding stripe.js dependency back. (#152)
1 parent a58ad73 commit e6f640a

File tree

8 files changed

+3486
-7713
lines changed

8 files changed

+3486
-7713
lines changed

package-lock.json

Lines changed: 3437 additions & 7640 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -28,57 +28,36 @@
2828
]
2929
},
3030
"dependencies": {
31-
"@date-io/core": "^2.5.0",
3231
"@date-io/moment": "^1.3.13",
33-
"@emotion/core": "^10.0.28",
3432
"@emotion/styled": "^10.0.27",
3533
"@fortawesome/fontawesome-svg-core": "^1.2.29",
3634
"@fortawesome/free-brands-svg-icons": "^5.13.1",
37-
"@fortawesome/free-regular-svg-icons": "^5.13.1",
3835
"@fortawesome/free-solid-svg-icons": "^5.13.1",
3936
"@fortawesome/react-fontawesome": "^0.1.11",
40-
"@fullcalendar/core": "^4.4.0",
41-
"@fullcalendar/daygrid": "^4.4.0",
42-
"@fullcalendar/interaction": "^4.4.0",
43-
"@fullcalendar/list": "^4.4.0",
44-
"@fullcalendar/react": "^4.4.0",
45-
"@fullcalendar/timegrid": "^4.4.0",
46-
"@fullcalendar/timeline": "^4.4.0",
4737
"@material-ui/core": "^4.9.9",
4838
"@material-ui/icons": "^4.9.1",
49-
"@material-ui/lab": "^4.0.0-alpha.48",
5039
"@material-ui/pickers": "^3.2.10",
5140
"@material-ui/styles": "^4.9.6",
5241
"@mdx-js/react": "^1.5.8",
5342
"@mui-treasury/components": "^1.9.1",
5443
"@mui-treasury/styles": "^1.13.0",
55-
"@react-pdf/renderer": "^1.6.8",
56-
"@stripe/react-stripe-js": "^1.1.2",
5744
"@stripe/stripe-js": "^1.11.0",
58-
"apexcharts": "^3.18.0",
45+
"@stripe/react-stripe-js": "^1.1.2",
5946
"axios": "^0.21.1",
6047
"axios-mock-adapter": "^1.17.0",
61-
"change-case": "^4.1.1",
62-
"chart.js": "^2.9.3",
6348
"clsx": "^1.1.0",
64-
"draft-js": "^0.11.7",
6549
"firebase": "^7.21.1",
66-
"formik": "^2.1.4",
6750
"history": "^4.10.1",
6851
"immer": "^6.0.3",
69-
"immutable": "^4.0.0-rc.12",
70-
"js-cookie": "^2.2.1",
71-
"jsonwebtoken": "^8.5.1",
7252
"jss": "^10.1.1",
7353
"jss-rtl": "^0.3.0",
7454
"jwt-decode": "^2.2.0",
75-
"keycloak-js": "^10.0.1",
7655
"lodash": "^4.17.20",
77-
"moment": "^2.24.0",
7856
"notistack": "^0.9.9",
7957
"nprogress": "^0.2.0",
8058
"prismjs": "^1.20.0",
8159
"prop-types": "^15.7.2",
60+
"chart.js": "^2.9.3",
8261
"react": "^16.13.1",
8362
"react-apexcharts": "^1.3.7",
8463
"react-app-polyfill": "^1.0.6",
@@ -108,9 +87,7 @@
10887
"redux-logger": "^3.0.6",
10988
"redux-thunk": "^2.3.0",
11089
"swiper": "^6.3.5",
111-
"tawkto-react": "^1.0.11",
112-
"uuid": "^7.0.3",
113-
"yup": "^0.28.3"
90+
"tawkto-react": "^1.0.11"
11491
},
11592
"devDependencies": {
11693
"eslint": "^6.8.0",

src/Routes.js

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import PrivacyView from './views/pages/documents/privacyView';
2222
import RefundView from './views/pages/documents/refundView';
2323
import ScrollReset from './components/ScrollReset';
2424
import coursesContent from 'src/data/courses';
25-
import Success from './views/pages/PaymentStatus/Success'
26-
import Cancelled from './views/pages/PaymentStatus/Failure'
25+
import Success from './views/pages/PaymentStatus/Success';
26+
import Cancelled from './views/pages/PaymentStatus/Failure';
2727

2828
const renderRoutes = () => (
2929
<Suspense fallback={<LoadingScreen />}>
@@ -111,20 +111,8 @@ const renderRoutes = () => (
111111
</MainLayout>
112112
)}
113113
/>
114-
<Route
115-
path="/success"
116-
exact
117-
render={props => (
118-
<Success />
119-
)}
120-
/>
121-
<Route
122-
path="/cancel"
123-
exact
124-
render={props => (
125-
<Cancelled />
126-
)}
127-
/>
114+
<Route path="/success" exact render={props => <Success />} />
115+
<Route path="/cancel" exact render={props => <Cancelled />} />
128116
<Route
129117
path="/editProfile"
130118
exact

src/views/pages/Course/ApplyModal.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ const useStyles = makeStyles(theme => ({
3939
}
4040
}));
4141

42-
export default function ApplyModal({ course, batch, fullWidth = false, ...rest }) {
42+
export default function ApplyModal({
43+
course,
44+
batch,
45+
fullWidth = false,
46+
...rest
47+
}) {
4348
const classes = useStyles();
4449
const [open, setOpen] = useState(false);
4550
const [formData, updateFormData] = useState({});

src/views/pages/Course/Schedule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function BatchDropBox({ course, batch, batchIndex, expanded, setExpanded }) {
278278
borderRadius: '5px'
279279
}}
280280
>
281-
<ApplyModal course={course} batch={batch}/>
281+
<ApplyModal course={course} batch={batch} />
282282
</Box>
283283
</Box>
284284
</Collapse>

src/views/pages/HomeView/Testimonials/TestimonialCard.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Box from '@material-ui/core/Box';
77
import FormatQuoteIcon from '@material-ui/icons/FormatQuote';
88

99
/** @jsx jsx */
10-
import { jsx } from '@emotion/core';
1110
import styled from '@emotion/styled';
1211

1312
const useStyles = makeStyles(theme => ({

src/views/pages/PaymentStatus/Failure.js

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { makeStyles, Typography, Link } from '@material-ui/core';
22
import React from 'react';
3-
import CustomButton from '../../../components/Button/ButtonComponent'
3+
import CustomButton from '../../../components/Button/ButtonComponent';
44

5-
const useStyles = makeStyles((theme) => ({
6-
root: {
5+
const useStyles = makeStyles(theme => ({
6+
root: {
77
backgroundColor: theme.palette.background.default,
88
marginTop: '30vh',
99
textAlign: 'center',
@@ -21,18 +21,22 @@ export default function Success() {
2121
if (true) {
2222
return (
2323
<div className={classes.root}>
24-
<Typography align="center">Your last payment to codeforcause was Failed. You can retry the payment from the course website.</Typography>
25-
<Typography align="center">Connect with us at {` `}
26-
<Link
27-
href="mailto:[email protected]"
28-
24+
<Typography align="center">
25+
Your last payment to codeforcause was Failed. You can retry the
26+
payment from the course website.
27+
</Typography>
28+
<Typography align="center">
29+
Connect with us at {` `}
30+
<Link href="mailto:[email protected]">[email protected]</Link>
2931
{` `}or{` `}
30-
<Link
31-
href="tel:+919810468685"
32-
>+91 98104 68685</Link>
33-
34-
{` `} in case of any help.</Typography>
35-
<CustomButton className={classes.button} title="Go Back To Homepage" href="/" />
32+
<Link href="tel:+919810468685">+91 98104 68685</Link>
33+
{` `} in case of any help.
34+
</Typography>
35+
<CustomButton
36+
className={classes.button}
37+
title="Go Back To Homepage"
38+
href="/"
39+
/>
3640
</div>
3741
);
3842
}

src/views/pages/PaymentStatus/Success.js

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { makeStyles, Typography, Link } from '@material-ui/core';
22
import React from 'react';
3-
import CustomButton from '../../../components/Button/ButtonComponent'
3+
import CustomButton from '../../../components/Button/ButtonComponent';
44

5-
const useStyles = makeStyles((theme) => ({
5+
const useStyles = makeStyles(theme => ({
66
root: {
77
backgroundColor: theme.palette.background.default,
88
marginTop: '30vh',
@@ -21,20 +21,23 @@ export default function Success() {
2121
if (true) {
2222
return (
2323
<div className={classes.root}>
24-
<Typography align="center">Your last payment to codeforcause was successful. We will connect to you within 24 hours with more details and
25-
you'll receive an email from us as well.
24+
<Typography align="center">
25+
Your last payment to codeforcause was successful. We will connect to
26+
you within 24 hours with more details and you'll receive an email from
27+
us as well.
2628
</Typography>
27-
<Typography align="center">Connect with us at {` `}
28-
<Link
29-
href="mailto:[email protected]"
30-
29+
<Typography align="center">
30+
Connect with us at {` `}
31+
<Link href="mailto:[email protected]">[email protected]</Link>
3132
{` `}or{` `}
32-
<Link
33-
href="tel:+919810468685"
34-
>+91 98104 68685</Link>
35-
36-
{` `} in case of any doubt.</Typography>
37-
<CustomButton className={classes.button} title="Go Back To Homepage" href="/" />
33+
<Link href="tel:+919810468685">+91 98104 68685</Link>
34+
{` `} in case of any doubt.
35+
</Typography>
36+
<CustomButton
37+
className={classes.button}
38+
title="Go Back To Homepage"
39+
href="/"
40+
/>
3841
</div>
3942
);
4043
}

0 commit comments

Comments
 (0)