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

Commit

Permalink
Removing all the unused dependencies (#152) (#196)
Browse files Browse the repository at this point in the history
* Removing all the unused dependencies (#152)

* Adding stripe.js dependency back. (#152)
  • Loading branch information
Itsaadarsh authored Jan 13, 2021
1 parent a58ad73 commit e6f640a
Show file tree
Hide file tree
Showing 8 changed files with 3,486 additions and 7,713 deletions.
11,077 changes: 3,437 additions & 7,640 deletions package-lock.json

Large diffs are not rendered by default.

29 changes: 3 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,57 +28,36 @@
]
},
"dependencies": {
"@date-io/core": "^2.5.0",
"@date-io/moment": "^1.3.13",
"@emotion/core": "^10.0.28",
"@emotion/styled": "^10.0.27",
"@fortawesome/fontawesome-svg-core": "^1.2.29",
"@fortawesome/free-brands-svg-icons": "^5.13.1",
"@fortawesome/free-regular-svg-icons": "^5.13.1",
"@fortawesome/free-solid-svg-icons": "^5.13.1",
"@fortawesome/react-fontawesome": "^0.1.11",
"@fullcalendar/core": "^4.4.0",
"@fullcalendar/daygrid": "^4.4.0",
"@fullcalendar/interaction": "^4.4.0",
"@fullcalendar/list": "^4.4.0",
"@fullcalendar/react": "^4.4.0",
"@fullcalendar/timegrid": "^4.4.0",
"@fullcalendar/timeline": "^4.4.0",
"@material-ui/core": "^4.9.9",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.48",
"@material-ui/pickers": "^3.2.10",
"@material-ui/styles": "^4.9.6",
"@mdx-js/react": "^1.5.8",
"@mui-treasury/components": "^1.9.1",
"@mui-treasury/styles": "^1.13.0",
"@react-pdf/renderer": "^1.6.8",
"@stripe/react-stripe-js": "^1.1.2",
"@stripe/stripe-js": "^1.11.0",
"apexcharts": "^3.18.0",
"@stripe/react-stripe-js": "^1.1.2",
"axios": "^0.21.1",
"axios-mock-adapter": "^1.17.0",
"change-case": "^4.1.1",
"chart.js": "^2.9.3",
"clsx": "^1.1.0",
"draft-js": "^0.11.7",
"firebase": "^7.21.1",
"formik": "^2.1.4",
"history": "^4.10.1",
"immer": "^6.0.3",
"immutable": "^4.0.0-rc.12",
"js-cookie": "^2.2.1",
"jsonwebtoken": "^8.5.1",
"jss": "^10.1.1",
"jss-rtl": "^0.3.0",
"jwt-decode": "^2.2.0",
"keycloak-js": "^10.0.1",
"lodash": "^4.17.20",
"moment": "^2.24.0",
"notistack": "^0.9.9",
"nprogress": "^0.2.0",
"prismjs": "^1.20.0",
"prop-types": "^15.7.2",
"chart.js": "^2.9.3",
"react": "^16.13.1",
"react-apexcharts": "^1.3.7",
"react-app-polyfill": "^1.0.6",
Expand Down Expand Up @@ -108,9 +87,7 @@
"redux-logger": "^3.0.6",
"redux-thunk": "^2.3.0",
"swiper": "^6.3.5",
"tawkto-react": "^1.0.11",
"uuid": "^7.0.3",
"yup": "^0.28.3"
"tawkto-react": "^1.0.11"
},
"devDependencies": {
"eslint": "^6.8.0",
Expand Down
20 changes: 4 additions & 16 deletions src/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import PrivacyView from './views/pages/documents/privacyView';
import RefundView from './views/pages/documents/refundView';
import ScrollReset from './components/ScrollReset';
import coursesContent from 'src/data/courses';
import Success from './views/pages/PaymentStatus/Success'
import Cancelled from './views/pages/PaymentStatus/Failure'
import Success from './views/pages/PaymentStatus/Success';
import Cancelled from './views/pages/PaymentStatus/Failure';

const renderRoutes = () => (
<Suspense fallback={<LoadingScreen />}>
Expand Down Expand Up @@ -111,20 +111,8 @@ const renderRoutes = () => (
</MainLayout>
)}
/>
<Route
path="/success"
exact
render={props => (
<Success />
)}
/>
<Route
path="/cancel"
exact
render={props => (
<Cancelled />
)}
/>
<Route path="/success" exact render={props => <Success />} />
<Route path="/cancel" exact render={props => <Cancelled />} />
<Route
path="/editProfile"
exact
Expand Down
7 changes: 6 additions & 1 deletion src/views/pages/Course/ApplyModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ const useStyles = makeStyles(theme => ({
}
}));

export default function ApplyModal({ course, batch, fullWidth = false, ...rest }) {
export default function ApplyModal({
course,
batch,
fullWidth = false,
...rest
}) {
const classes = useStyles();
const [open, setOpen] = useState(false);
const [formData, updateFormData] = useState({});
Expand Down
2 changes: 1 addition & 1 deletion src/views/pages/Course/Schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ function BatchDropBox({ course, batch, batchIndex, expanded, setExpanded }) {
borderRadius: '5px'
}}
>
<ApplyModal course={course} batch={batch}/>
<ApplyModal course={course} batch={batch} />
</Box>
</Box>
</Collapse>
Expand Down
1 change: 0 additions & 1 deletion src/views/pages/HomeView/Testimonials/TestimonialCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Box from '@material-ui/core/Box';
import FormatQuoteIcon from '@material-ui/icons/FormatQuote';

/** @jsx jsx */
import { jsx } from '@emotion/core';
import styled from '@emotion/styled';

const useStyles = makeStyles(theme => ({
Expand Down
32 changes: 18 additions & 14 deletions src/views/pages/PaymentStatus/Failure.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { makeStyles, Typography, Link } from '@material-ui/core';
import React from 'react';
import CustomButton from '../../../components/Button/ButtonComponent'
import CustomButton from '../../../components/Button/ButtonComponent';

const useStyles = makeStyles((theme) => ({
root: {
const useStyles = makeStyles(theme => ({
root: {
backgroundColor: theme.palette.background.default,
marginTop: '30vh',
textAlign: 'center',
Expand All @@ -21,18 +21,22 @@ export default function Success() {
if (true) {
return (
<div className={classes.root}>
<Typography align="center">Your last payment to codeforcause was Failed. You can retry the payment from the course website.</Typography>
<Typography align="center">Connect with us at {` `}
<Link
href="mailto:[email protected]"
>[email protected]</Link>
<Typography align="center">
Your last payment to codeforcause was Failed. You can retry the
payment from the course website.
</Typography>
<Typography align="center">
Connect with us at {` `}
<Link href="mailto:[email protected]">[email protected]</Link>
{` `}or{` `}
<Link
href="tel:+919810468685"
>+91 98104 68685</Link>

{` `} in case of any help.</Typography>
<CustomButton className={classes.button} title="Go Back To Homepage" href="/" />
<Link href="tel:+919810468685">+91 98104 68685</Link>
{` `} in case of any help.
</Typography>
<CustomButton
className={classes.button}
title="Go Back To Homepage"
href="/"
/>
</div>
);
}
Expand Down
31 changes: 17 additions & 14 deletions src/views/pages/PaymentStatus/Success.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { makeStyles, Typography, Link } from '@material-ui/core';
import React from 'react';
import CustomButton from '../../../components/Button/ButtonComponent'
import CustomButton from '../../../components/Button/ButtonComponent';

const useStyles = makeStyles((theme) => ({
const useStyles = makeStyles(theme => ({
root: {
backgroundColor: theme.palette.background.default,
marginTop: '30vh',
Expand All @@ -21,20 +21,23 @@ export default function Success() {
if (true) {
return (
<div className={classes.root}>
<Typography align="center">Your last payment to codeforcause was successful. We will connect to you within 24 hours with more details and
you'll receive an email from us as well.
<Typography align="center">
Your last payment to codeforcause was successful. We will connect to
you within 24 hours with more details and you'll receive an email from
us as well.
</Typography>
<Typography align="center">Connect with us at {` `}
<Link
href="mailto:[email protected]"
>[email protected]</Link>
<Typography align="center">
Connect with us at {` `}
<Link href="mailto:[email protected]">[email protected]</Link>
{` `}or{` `}
<Link
href="tel:+919810468685"
>+91 98104 68685</Link>

{` `} in case of any doubt.</Typography>
<CustomButton className={classes.button} title="Go Back To Homepage" href="/" />
<Link href="tel:+919810468685">+91 98104 68685</Link>
{` `} in case of any doubt.
</Typography>
<CustomButton
className={classes.button}
title="Go Back To Homepage"
href="/"
/>
</div>
);
}
Expand Down

0 comments on commit e6f640a

Please sign in to comment.