diff --git a/src/App.js b/src/App.js index 0dccd0af..d1afb004 100755 --- a/src/App.js +++ b/src/App.js @@ -14,8 +14,6 @@ import { } from '@material-ui/core'; import { MuiPickersUtilsProvider } from '@material-ui/pickers'; import Auth from 'src/components/auth/Auth'; -// import CookiesNotification from 'src/components/CookiesNotification'; -// import SettingsNotification from 'src/components/SettingsNotification'; import GoogleAnalytics from 'src/components/GoogleAnalytics'; import ScrollReset from 'src/components/ScrollReset'; import useSettings from 'src/hooks/useSettings'; @@ -80,8 +78,7 @@ function App() { - {/* */} - {/* */} + diff --git a/src/Routes.js b/src/Routes.js index 71129ba1..5d74669c 100755 --- a/src/Routes.js +++ b/src/Routes.js @@ -1,4 +1,3 @@ -/* eslint-disable react/no-array-index-key */ import React, { lazy, Suspense } from 'react'; import { Switch, Route } from 'react-router-dom'; import LoadingScreen from 'src/components/LoadingScreen'; @@ -298,7 +297,6 @@ const renderRoutes = () => ( )} /> - {/* Privacy, refund policies, and terms and conditions routes */} ({ }, slide: { - perspective: 0, // create perspective + perspective: 0, overflow: 'hidden', - // relative is a must if you want to create overlapping layers in children + position: 'relative' }, background: { @@ -92,7 +92,7 @@ const useStyles = makeStyles(theme => ({ gridList: { flexWrap: 'nowrap', width: '100%', - // Promote the list into his own layer on Chrome. This cost memory but helps keeping high FPS. + transform: 'translateZ(0)' }, bottomCardContent: { diff --git a/src/components/Course/CourseCardTemplate2.js b/src/components/Course/CourseCardTemplate2.js index 1a293dea..31373cdd 100644 --- a/src/components/Course/CourseCardTemplate2.js +++ b/src/components/Course/CourseCardTemplate2.js @@ -86,9 +86,9 @@ const useStyles = makeStyles(theme => ({ }, slide: { - perspective: 0, // create perspective + perspective: 0, overflow: 'hidden', - // relative is a must if you want to create overlapping layers in children + position: 'relative' }, background: { @@ -243,8 +243,7 @@ export default function CourseCard({ course }) { - {/* - You will be able to enroll into the course as soon as you successfully completed your online meeting. */} + ); diff --git a/src/components/Hero/HeroWithOneButton.js b/src/components/Hero/HeroWithOneButton.js index 29b1d7d9..5e689192 100644 --- a/src/components/Hero/HeroWithOneButton.js +++ b/src/components/Hero/HeroWithOneButton.js @@ -3,7 +3,6 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import { Box, Container, Typography, makeStyles } from '@material-ui/core'; -// import ApplyNowModal from './ApplyNowModal'; const useStyles = makeStyles(theme => ({ root: { @@ -40,9 +39,9 @@ function Hero({ title, subtitle, subtitleDesign, - className, // className - backgroundImage = null, // Link to the background image if any - component = null, // The Button or any component provided + className, + backgroundImage = null, + component = null, ...rest }) { const classes = useStyles(); diff --git a/src/config/index.js b/src/config/index.js index 635a39ed..11a364e4 100755 --- a/src/config/index.js +++ b/src/config/index.js @@ -1,4 +1,3 @@ -// or get from process.env.REACT_APP_{var} to handle PROD and DEV environments export const APP_VERSION = '2.0.0'; export const API_BASE_URL = '/api'; export const ENABLE_REDUX_LOGGER = false; diff --git a/src/constants/index.js b/src/constants/index.js index c5951164..761849a6 100755 --- a/src/constants/index.js +++ b/src/constants/index.js @@ -1,4 +1,3 @@ -/* eslint-disable import/prefer-default-export */ export const THEMES = { LIGHT: 'LIGHT', ONE_DARK: 'ONE_DARK', diff --git a/src/data/HomeViewData/HomeViewData.js b/src/data/HomeViewData/HomeViewData.js index 6377e018..94f00d54 100644 --- a/src/data/HomeViewData/HomeViewData.js +++ b/src/data/HomeViewData/HomeViewData.js @@ -1,4 +1,3 @@ -// event data------------------ export const events = [ { img: 'https://img.youtube.com/vi/hkx_JFFwM1o/hqdefault.jpg', @@ -57,7 +56,6 @@ export const bootcamps = [ } ]; -// mentors data---------------- export const mentors = [ { @@ -99,7 +97,6 @@ export const mentors = [ } ]; -// experience data --------------------- export const experience = [ { @@ -128,7 +125,6 @@ export const experience = [ } ]; -// Open source section data----------------- export const openKnowledgeContent = { title: 'Open Knowledge', about: `Our structure is based on generating knowledge flow that is not limited by bottlenecks. We inspire diff --git a/src/data/blogAuthors.js b/src/data/blogAuthors.js index 772a87d6..31ddf5ca 100644 --- a/src/data/blogAuthors.js +++ b/src/data/blogAuthors.js @@ -1,4 +1,3 @@ -// mentors data---------------- export const authors = { 'Anuj Garg': { diff --git a/src/serviceWorker.js b/src/serviceWorker.js index 8d92d943..c01b2fe9 100755 --- a/src/serviceWorker.js +++ b/src/serviceWorker.js @@ -1,21 +1,8 @@ -/* eslint-disable */ -// This optional code is used to register a service worker. -// register() is not called by default. -// This lets the app load faster on subsequent visits in projection, and gives -// it offline capabilities. However, it also means that developers (and users) -// will only see deployed updates on subsequent visits to a page, after all the -// existing tabs open on the page have been closed, since previously cached -// resources are updated in the background. - -// To learn more about the benefits of this model and instructions on how to -// opt-in, read http://bit.ly/CRA-PWA const isLocalhost = Boolean( window.location.hostname === 'localhost' || - // [::1] is the IPv6 localhost address. window.location.hostname === '[::1]' || - // 127.0.0.1/8 is considered localhost for IPv4. window.location.hostname.match( /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ ) @@ -23,12 +10,8 @@ const isLocalhost = Boolean( export function register(config) { if (process.env.NODE_ENV === 'projection' && 'serviceWorker' in navigator) { - // The URL constructor is available in all browsers that support SW. const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href); if (publicUrl.origin !== window.location.origin) { - // Our service worker won't work if PUBLIC_URL is on a different origin - // from what our page is served on. This might happen if a CDN is used to - // serve assets; see https://github.com/facebook/create-react-app/issues/2374 return; } @@ -36,11 +19,9 @@ export function register(config) { const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; if (isLocalhost) { - // This is running on localhost. Let's check if a service worker still exists or not. checkValidServiceWorker(swUrl, config); - // Add some additional logging to localhost, pointing developers to the - // service worker/PWA documentation. + navigator.serviceWorker.ready.then(() => { console.log( 'This web app is being served cache-first by a service ' + @@ -48,7 +29,6 @@ export function register(config) { ); }); } else { - // Is not localhost. Just register service worker registerValidSW(swUrl, config); } }); @@ -67,25 +47,19 @@ function registerValidSW(swUrl, config) { installingWorker.onstatechange = () => { if (installingWorker.state === 'installed') { if (navigator.serviceWorker.controller) { - // At this point, the updated precached content has been fetched, - // but the previous service worker will still serve the older - // content until all client tabs are closed. + console.log( 'New content is available and will be used when all ' + 'tabs for this page are closed. See http://bit.ly/CRA-PWA.' ); - // Execute callback if (config && config.onUpdate) { config.onUpdate(registration); } } else { - // At this point, everything has been precached. - // It's the perfect time to display a - // "Content is cached for offline use." message. + console.log('Content is cached for offline use.'); - // Execute callback if (config && config.onSuccess) { config.onSuccess(registration); } @@ -100,23 +74,19 @@ function registerValidSW(swUrl, config) { } function checkValidServiceWorker(swUrl, config) { - // Check if the service worker can be found. If it can't reload the page. fetch(swUrl) .then(response => { - // Ensure service worker exists, and that we really are getting a JS file. const contentType = response.headers.get('content-type'); if ( response.status === 404 || (contentType != null && contentType.indexOf('javascript') === -1) ) { - // No service worker found. Probably a different app. Reload the page. navigator.serviceWorker.ready.then(registration => { registration.unregister().then(() => { window.location.reload(); }); }); } else { - // Service worker found. Proceed as normal. registerValidSW(swUrl, config); } }) diff --git a/src/views/pages/ApplicationsView/EditApplication.js b/src/views/pages/ApplicationsView/EditApplication.js index 11b6fd09..74a98778 100644 --- a/src/views/pages/ApplicationsView/EditApplication.js +++ b/src/views/pages/ApplicationsView/EditApplication.js @@ -2,7 +2,6 @@ import React, { useState } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import { Grid, Typography } from '@material-ui/core'; import { ApplicationSteps } from './ApplicationSteps'; -// import axios from 'src/utils/axios'; const useStyles = makeStyles(theme => ({ root: { diff --git a/src/views/pages/BlogsView/PublishBlog.js b/src/views/pages/BlogsView/PublishBlog.js index b62a009c..0a540afc 100644 --- a/src/views/pages/BlogsView/PublishBlog.js +++ b/src/views/pages/BlogsView/PublishBlog.js @@ -106,7 +106,6 @@ function Form() { const [formData, updateFormData] = useState({}); const [submitting, setSubmitting] = useState(0); - // const { enqueueSnackbar } = useSnackbar(); const handleChange = event => { updateFormData({ @@ -119,21 +118,7 @@ function Form() { setSubmitting(1); e.preventDefault(); formData.source = window.location.href; - // axios({ - // method: 'post', - // url: - // 'https://us-central1-codeforcauseorg.cloudfunctions.net/widgets/enquiries', - // data: formData - // }) - // .then(response => { - // setSubmitting(0); - // updateFormData({ name: '', email: '', phone: '' }); - // enqueueSnackbar('Request Submitted Successfully.'); - // }) - // .catch(error => { - // enqueueSnackbar('Request Failed. Please check your connection.'); - // setSubmitting(0); - // }); + }; return ( diff --git a/src/views/pages/BlogsView/SideBar.js b/src/views/pages/BlogsView/SideBar.js index 94d6be08..a2695f37 100644 --- a/src/views/pages/BlogsView/SideBar.js +++ b/src/views/pages/BlogsView/SideBar.js @@ -2,7 +2,6 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Container, Typography, makeStyles, Box } from '@material-ui/core'; import { Link } from 'react-router-dom'; -// import blogs from '../../../data/blogs'; const useStyles = makeStyles(theme => ({ root: { diff --git a/src/views/pages/BootCampsView/Bootcamps.js b/src/views/pages/BootCampsView/Bootcamps.js index e5f981fa..b9d68cac 100644 --- a/src/views/pages/BootCampsView/Bootcamps.js +++ b/src/views/pages/BootCampsView/Bootcamps.js @@ -79,9 +79,8 @@ const useStyles = makeStyles(theme => ({ }, slide: { - perspective: 0, // create perspective + perspective: 0, overflow: 'hidden', - // relative is a must if you want to create overlapping layers in children position: 'relative' }, background: { @@ -93,7 +92,6 @@ const useStyles = makeStyles(theme => ({ gridList: { flexWrap: 'wrap', width: '100%', - // Promote the list into his own layer on Chrome. This cost memory but helps keeping high FPS. transform: 'translateZ(0)' } })); diff --git a/src/views/pages/Bootcamp/FinalAction.js b/src/views/pages/Bootcamp/FinalAction.js index 9f104403..875e079f 100644 --- a/src/views/pages/Bootcamp/FinalAction.js +++ b/src/views/pages/Bootcamp/FinalAction.js @@ -86,23 +86,7 @@ const useStyles = makeStyles(theme => ({ export default function FinalAction({ course, batch }) { const classes = useStyles(); - // const [applyState, setApplyState] = useState('Enquire'); - - // const user = useSelector(state => state.account.user); - // const baseUrl = - // 'https://us-central1-codeforcauseorg.cloudfunctions.net/widgets/applications'; - // const dispatch = useDispatch(); - // const handleApply = () => { - // const url = `${baseUrl}/${batch.courseId}`; - // if (!user) { - // dispatch(login()); - // } else { - // setApplyState('Generating...'); - // axios.post(url).then(result => { - // window.location.href = `/applications?id=${result.data.id}`; - // }); - // } - // }; + return ( diff --git a/src/views/pages/Bootcamp/Major.js b/src/views/pages/Bootcamp/Major.js index 7bafd8cd..16f2d352 100644 --- a/src/views/pages/Bootcamp/Major.js +++ b/src/views/pages/Bootcamp/Major.js @@ -96,10 +96,7 @@ export default function Major({ course }) {
- {/* - - */} - + diff --git a/src/views/pages/Bootcamp/ProcessSteppers.js b/src/views/pages/Bootcamp/ProcessSteppers.js index 6be42d91..e756176b 100644 --- a/src/views/pages/Bootcamp/ProcessSteppers.js +++ b/src/views/pages/Bootcamp/ProcessSteppers.js @@ -131,17 +131,11 @@ function ColorlibStepIcon(props) { } ColorlibStepIcon.propTypes = { - /** - * Whether this step is active. - */ + active: PropTypes.bool, - /** - * Mark the step as completed. Is passed to child components. - */ + completed: PropTypes.bool, - /** - * The label displayed in the step icon. - */ + icon: PropTypes.node }; diff --git a/src/views/pages/Course/ApplyModal.js b/src/views/pages/Course/ApplyModal.js index 7fccb78a..2ae38013 100644 --- a/src/views/pages/Course/ApplyModal.js +++ b/src/views/pages/Course/ApplyModal.js @@ -97,9 +97,7 @@ export default function ApplyModal({ sessionId: response.data.id }) .then(function(result) { - // If `redirectToCheckout` fails due to a browser or network - // error, display the localized error message to your customer - // using `result.error.message`. + }); }); }) diff --git a/src/views/pages/Course/CoursePage/index.js b/src/views/pages/Course/CoursePage/index.js index d314b5fc..dc8e5e86 100755 --- a/src/views/pages/Course/CoursePage/index.js +++ b/src/views/pages/Course/CoursePage/index.js @@ -11,7 +11,6 @@ import Major from '../Major'; import Features from '../Features'; import Process from '../Process'; import AutoPopup from '../../../../components/popups/autoPopupDialog'; -// import CourseFeatures from '../partials/CourseFeatures'; const useStyles = makeStyles(() => ({ root: { @@ -28,7 +27,6 @@ function CoursePage({ course }) { - {/* */} diff --git a/src/views/pages/Course/FinalAction.js b/src/views/pages/Course/FinalAction.js index 9f104403..4a007672 100644 --- a/src/views/pages/Course/FinalAction.js +++ b/src/views/pages/Course/FinalAction.js @@ -86,23 +86,7 @@ const useStyles = makeStyles(theme => ({ export default function FinalAction({ course, batch }) { const classes = useStyles(); - // const [applyState, setApplyState] = useState('Enquire'); - - // const user = useSelector(state => state.account.user); - // const baseUrl = - // 'https://us-central1-codeforcauseorg.cloudfunctions.net/widgets/applications'; - // const dispatch = useDispatch(); - // const handleApply = () => { - // const url = `${baseUrl}/${batch.courseId}`; - // if (!user) { - // dispatch(login()); - // } else { - // setApplyState('Generating...'); - // axios.post(url).then(result => { - // window.location.href = `/applications?id=${result.data.id}`; - // }); - // } - // }; + return ( diff --git a/src/views/pages/Course/Major.js b/src/views/pages/Course/Major.js index 7bafd8cd..b2d38a1e 100644 --- a/src/views/pages/Course/Major.js +++ b/src/views/pages/Course/Major.js @@ -74,9 +74,8 @@ const useStyles = makeStyles(theme => ({ }, slide: { - perspective: 0, // create perspective - overflow: 'hidden', - // relative is a must if you want to create overlapping layers in children + perspective: 0, + overflow: 'hidden', position: 'relative' }, background: { diff --git a/src/views/pages/Course/Mentors.js b/src/views/pages/Course/Mentors.js index 26a1f51a..7f8e5820 100755 --- a/src/views/pages/Course/Mentors.js +++ b/src/views/pages/Course/Mentors.js @@ -67,7 +67,6 @@ function Mentors({ mentors, className, ...rest }) { Meet Our Mentors - {/* End hero unit */} - {/* - Application Process To Get Shortlisted - - - - */} + ); diff --git a/src/views/pages/Course/ProcessSteppers.js b/src/views/pages/Course/ProcessSteppers.js index 6be42d91..fbd8f4ed 100644 --- a/src/views/pages/Course/ProcessSteppers.js +++ b/src/views/pages/Course/ProcessSteppers.js @@ -55,13 +55,9 @@ function QontoStepIcon(props) { } QontoStepIcon.propTypes = { - /** - * Whether this step is active. - */ + active: PropTypes.bool, - /** - * Mark the step as completed. Is passed to child components. - */ + completed: PropTypes.bool }; @@ -131,17 +127,11 @@ function ColorlibStepIcon(props) { } ColorlibStepIcon.propTypes = { - /** - * Whether this step is active. - */ + active: PropTypes.bool, - /** - * Mark the step as completed. Is passed to child components. - */ + completed: PropTypes.bool, - /** - * The label displayed in the step icon. - */ + icon: PropTypes.node }; diff --git a/src/views/pages/EventsView/CTA.js b/src/views/pages/EventsView/CTA.js index 3ef99d12..fb63d19d 100755 --- a/src/views/pages/EventsView/CTA.js +++ b/src/views/pages/EventsView/CTA.js @@ -17,7 +17,6 @@ const useStyles = makeStyles(theme => ({ backgroundColor: theme.palette.background.LIGHT, paddingLeft: 70, paddingRight: 70, - //write css for small screen [theme.breakpoints.down('md')]: { paddingLeft: 15, paddingRight: 15 diff --git a/src/views/pages/HireWithUsView/Developer/DevBox/index.js b/src/views/pages/HireWithUsView/Developer/DevBox/index.js index 801d0cae..97d7573f 100644 --- a/src/views/pages/HireWithUsView/Developer/DevBox/index.js +++ b/src/views/pages/HireWithUsView/Developer/DevBox/index.js @@ -1,5 +1,4 @@ import React from 'react'; -// import classes from './DevBox.module.css' import Gold_Ribbon from '../../../../../assets/images/Gold_Ribbon.png'; import Book_Icon from '../../../../../assets/images/Book_Icon.png'; import Thumbs_Up from '../../../../../assets/images/Thumbs_Up.png'; diff --git a/src/views/pages/HireWithUsView/Developer/Developer.js b/src/views/pages/HireWithUsView/Developer/Developer.js index e475f3f8..a5b949ac 100644 --- a/src/views/pages/HireWithUsView/Developer/Developer.js +++ b/src/views/pages/HireWithUsView/Developer/Developer.js @@ -1,6 +1,5 @@ import React from 'react'; import Devbox from './DevBox/index'; -// import classes from './Developer.module.css'; import { Grid, Typography, makeStyles } from '@material-ui/core'; const useStyles = makeStyles(theme => ({ @@ -48,7 +47,6 @@ const useStyles = makeStyles(theme => ({ paddingLeft: '40px' } - // paddingRight:"550px" }, Lastbox: { marginTop: '20px' @@ -75,7 +73,6 @@ const useStyles = makeStyles(theme => ({ backgroundColor: 'white', boxShadow: '0px 0px 14px rgba(0, 0, 0, 0.1), inset 0px 0px 18px salmon', borderRadius: '121.5px 20px 121px 121.5px', - /* border:5px solid black; */ position: 'relative', float: 'right', top: '-190px', @@ -113,7 +110,6 @@ const useStyles = makeStyles(theme => ({ zIndex: '1000', display: 'inline-block', [theme.breakpoints.down('md')]: { - // height: '90px', width: '500px', left: '250px' } diff --git a/src/views/pages/HireWithUsView/Philosphy/Philosphy.js b/src/views/pages/HireWithUsView/Philosphy/Philosphy.js index e89f3727..840856f9 100644 --- a/src/views/pages/HireWithUsView/Philosphy/Philosphy.js +++ b/src/views/pages/HireWithUsView/Philosphy/Philosphy.js @@ -1,5 +1,4 @@ import React from 'react'; -// import classes from './Developer.module.css'; import { Grid, Typography, makeStyles } from '@material-ui/core'; import Businessman from '../../../../assets/images/Businessman.png'; @@ -37,7 +36,6 @@ const useStyles = makeStyles(theme => ({ paddingTop: '30px', borderTopLeftRadius: '350px', borderBottomLeftRadius: '50px', - // boxShadow: "0px 0px 14px rgba(0, 0, 0, 0.1), inset 0px 0px 18px #BAAEAE", opacity: '0.7', zIndex: '200', [theme.breakpoints.down('xs')]: { diff --git a/src/views/pages/HireWithUsView/index.js b/src/views/pages/HireWithUsView/index.js index c4f18b94..bf5b878d 100644 --- a/src/views/pages/HireWithUsView/index.js +++ b/src/views/pages/HireWithUsView/index.js @@ -6,8 +6,6 @@ import Developer from './Developer/Developer'; import Footer from '../common/Footer'; import Philosphy from './Philosphy/Philosphy'; import Major from './Major/Major'; -// import CTA from './CTA'; -// import Apply from '../common/Apply'; const useStyles = makeStyles(() => ({ root: {} diff --git a/src/views/pages/HomeView/CTA.js b/src/views/pages/HomeView/CTA.js index 30ca33c7..1b5b7d24 100755 --- a/src/views/pages/HomeView/CTA.js +++ b/src/views/pages/HomeView/CTA.js @@ -17,7 +17,6 @@ const useStyles = makeStyles(theme => ({ backgroundColor: theme.palette.background.LIGHT, paddingLeft: 70, paddingRight: 70, - //write css for small screen [theme.breakpoints.down('md')]: { paddingLeft: 15, paddingRight: 15 diff --git a/src/views/pages/HomeView/Courses.js b/src/views/pages/HomeView/Courses.js index 7c45a737..ba8617b4 100644 --- a/src/views/pages/HomeView/Courses.js +++ b/src/views/pages/HomeView/Courses.js @@ -89,9 +89,8 @@ const useStyles = makeStyles(theme => ({ }, slide: { - perspective: 0, // create perspective + perspective: 0, overflow: 'hidden', - // relative is a must if you want to create overlapping layers in children position: 'relative' }, background: { @@ -103,7 +102,6 @@ const useStyles = makeStyles(theme => ({ gridList: { flexWrap: 'nowrap', width: '100%', - // Promote the list into his own layer on Chrome. This cost memory but helps keeping high FPS. transform: 'translateZ(0)', [theme.breakpoints.up('lg')]: { padding: '0px 50px' diff --git a/src/views/pages/HomeView/Promoters.js b/src/views/pages/HomeView/Promoters.js index d09e74b3..70cc6a8d 100755 --- a/src/views/pages/HomeView/Promoters.js +++ b/src/views/pages/HomeView/Promoters.js @@ -7,7 +7,6 @@ const useStyles = makeStyles(theme => ({ root: { backgroundColor: '#F2F7FF', paddingTop: theme.spacing(1), - // paddingBottom: theme.spacing(2), paddingLeft: 70, paddingRight: 70, [theme.breakpoints.down('md')]: { diff --git a/src/views/pages/HomeView/Testimonials/TestimonialCard.js b/src/views/pages/HomeView/Testimonials/TestimonialCard.js index a6d0b9c4..c679fecd 100644 --- a/src/views/pages/HomeView/Testimonials/TestimonialCard.js +++ b/src/views/pages/HomeView/Testimonials/TestimonialCard.js @@ -1,4 +1,3 @@ -//eslint-disable-next-line import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; diff --git a/src/views/pages/ProfileView/UserEdit.js b/src/views/pages/ProfileView/UserEdit.js index 7e252a6d..081468e3 100644 --- a/src/views/pages/ProfileView/UserEdit.js +++ b/src/views/pages/ProfileView/UserEdit.js @@ -13,7 +13,6 @@ export class UserEdit extends React.Component { }; handleSubmit = () => { - // your submit logic }; render() { diff --git a/src/views/pages/ProfileView/UserProfile.js b/src/views/pages/ProfileView/UserProfile.js index b2242998..9b726c98 100644 --- a/src/views/pages/ProfileView/UserProfile.js +++ b/src/views/pages/ProfileView/UserProfile.js @@ -36,21 +36,7 @@ export default function UserProfile() { }); }; - // const handleSubmit = e => { - // setSubmitting(1); - // e.preventDefault(); - // axios({ - // method: 'post', - // url: - // 'https://us-central1-codeforcauseorg.cloudfunctions.net/widgets/leads', - // data: formData - // }) - // .then(response => { - // setSubmitting(0); - // }) - // .catch(error => {}); - // }; - + return (
diff --git a/src/views/pages/SpecialCourse/FinalAction.js b/src/views/pages/SpecialCourse/FinalAction.js index 9f104403..875e079f 100644 --- a/src/views/pages/SpecialCourse/FinalAction.js +++ b/src/views/pages/SpecialCourse/FinalAction.js @@ -86,23 +86,7 @@ const useStyles = makeStyles(theme => ({ export default function FinalAction({ course, batch }) { const classes = useStyles(); - // const [applyState, setApplyState] = useState('Enquire'); - - // const user = useSelector(state => state.account.user); - // const baseUrl = - // 'https://us-central1-codeforcauseorg.cloudfunctions.net/widgets/applications'; - // const dispatch = useDispatch(); - // const handleApply = () => { - // const url = `${baseUrl}/${batch.courseId}`; - // if (!user) { - // dispatch(login()); - // } else { - // setApplyState('Generating...'); - // axios.post(url).then(result => { - // window.location.href = `/applications?id=${result.data.id}`; - // }); - // } - // }; + return ( diff --git a/src/views/pages/SpecialCourse/Major.js b/src/views/pages/SpecialCourse/Major.js index 7bafd8cd..57fdb609 100644 --- a/src/views/pages/SpecialCourse/Major.js +++ b/src/views/pages/SpecialCourse/Major.js @@ -74,9 +74,8 @@ const useStyles = makeStyles(theme => ({ }, slide: { - perspective: 0, // create perspective + perspective: 0, overflow: 'hidden', - // relative is a must if you want to create overlapping layers in children position: 'relative' }, background: { @@ -96,9 +95,7 @@ export default function Major({ course }) {
- {/* - - */} + diff --git a/src/views/pages/SpecialCourse/ProcessSteppers.js b/src/views/pages/SpecialCourse/ProcessSteppers.js index 6be42d91..d71da798 100644 --- a/src/views/pages/SpecialCourse/ProcessSteppers.js +++ b/src/views/pages/SpecialCourse/ProcessSteppers.js @@ -55,13 +55,9 @@ function QontoStepIcon(props) { } QontoStepIcon.propTypes = { - /** - * Whether this step is active. - */ + active: PropTypes.bool, - /** - * Mark the step as completed. Is passed to child components. - */ + completed: PropTypes.bool }; @@ -131,17 +127,11 @@ function ColorlibStepIcon(props) { } ColorlibStepIcon.propTypes = { - /** - * Whether this step is active. - */ + active: PropTypes.bool, - /** - * Mark the step as completed. Is passed to child components. - */ + completed: PropTypes.bool, - /** - * The label displayed in the step icon. - */ + icon: PropTypes.node }; diff --git a/src/views/pages/common/CourseRecommendations.js b/src/views/pages/common/CourseRecommendations.js index 1f9104f1..5e039682 100644 --- a/src/views/pages/common/CourseRecommendations.js +++ b/src/views/pages/common/CourseRecommendations.js @@ -41,7 +41,6 @@ const useStyles = makeStyles(theme => ({ cardMedia: { width: '100%', height: 'auto' - // paddingTop: "56.25%", // 16:9 }, cardContent: {}, chipActions: { @@ -85,9 +84,8 @@ const useStyles = makeStyles(theme => ({ }, slide: { - perspective: 0, // create perspective + perspective: 0, overflow: 'hidden', - // relative is a must if you want to create overlapping layers in children position: 'relative' }, background: { diff --git a/src/views/pages/common/Recommendations.js b/src/views/pages/common/Recommendations.js index c55cbce1..652532ec 100644 --- a/src/views/pages/common/Recommendations.js +++ b/src/views/pages/common/Recommendations.js @@ -53,7 +53,6 @@ const useStyles = makeStyles(theme => ({ cardMedia: { width: '100%', height: 'auto' - // paddingTop: "56.25%", // 16:9 }, cardContent: { flexGrow: 1