This repository was archived by the owner on Mar 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +51
-172
lines changed Expand file tree Collapse file tree 7 files changed +51
-172
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import CompetitiveJavaView from 'src/views/pages/Courses/CompetitiveJavaView'
1515import PythonDevelopmentView from 'src/views/pages/Courses/PythonDevelopmentView'
1616import CoursesView from 'src/views/pages/CoursesView' ;
1717import ProfileView from 'src/views/pages/ProfileView'
18+ import ApplicationsView from 'src/views/pages/ApplicationsView'
1819
1920const routesConfig = [
2021 {
@@ -122,6 +123,19 @@ const routesConfig = [
122123 }
123124 ]
124125 } ,
126+ {
127+ path : '/applications' ,
128+ layout : MainLayout ,
129+ routes : [
130+ {
131+ path : '/applications' ,
132+ component : ApplicationsView
133+ } ,
134+ {
135+ component : ( ) => < Redirect to = "/404" />
136+ }
137+ ]
138+ } ,
125139 {
126140 path : '/machine-learning-using-python' ,
127141 layout : MainLayout ,
Original file line number Diff line number Diff line change @@ -47,30 +47,15 @@ export const algoPython = {
4747 title : 'Git Version Control Replica' ,
4848 img : '/static/images/courses/projects/git.png'
4949 } ,
50- {
51- title : 'Crossword Puzzle Game' ,
52- img : '/static/images/courses/projects/git.png'
53- } ,
54- {
55- title : 'Automatic Episode Player' ,
56- img : '/static/images/courses/projects/git.png'
57- } ,
58- {
59- title : 'Download Files from Internet with Python' ,
60- img : '/static/images/courses/projects/git.png'
61- } ,
62- {
63- title : 'Automated Code Submission on Platforms' ,
64- img : '/static/images/courses/projects/git.png'
65- } ,
66- {
67- title : 'WhatsApp Bot' ,
68- img : '/static/images/courses/projects/git.png'
69- } ,
70- {
71- title : 'Chat Application' ,
72- img : '/static/images/courses/projects/git.png'
73- } ,
50+ // {
51+ // title: 'Crossword Puzzle Game',
52+ // img: '/static/images/courses/projects/git.png'
53+ // },
54+ // {
55+ // title: 'Automatic Episode Player',
56+ // img: '/static/images/courses/projects/git.png'
57+ // },
58+
7459 ] ,
7560 topics : [
7661 {
@@ -254,7 +239,13 @@ export const algoPython = {
254239 'Algorithms' ,
255240 'Problem Solving' ,
256241 'Python' ,
257- 'CP' ,
242+ 'Recursion' ,
243+ 'Backtracking' ,
244+ 'Dynamic Programming' ,
245+ 'Stack' ,
246+ 'Queue' ,
247+ 'Sets' ,
248+ 'Bit Masking' ,
258249 'Interview Prep'
259250 ] ,
260251 overview : [
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react';
22import Button from '@material-ui/core/Button' ;
33import { ValidatorForm , TextValidator } from 'react-material-ui-form-validator' ;
44
5- export class UserEdit extends React . Component {
5+ export class EditApplication extends React . Component {
66
77 state = {
88 email : '' ,
Original file line number Diff line number Diff line change 44} from '@material-ui/core' ;
55import { makeStyles } from '@material-ui/core/styles' ;
66
7- import axios from 'axios' ;
8-
97const useStyles = makeStyles ( theme => ( {
108 btn : {
119 backgroundColor : '#A60000' ,
@@ -27,7 +25,7 @@ const useStyles = makeStyles(theme => ({
2725 }
2826} ) ) ;
2927
30- export default function UserProfile ( ) {
28+ export default function ListApplications ( ) {
3129 const classes = useStyles ( ) ;
3230 const [ formData , updateFormData ] = useState ( { } ) ;
3331
@@ -38,22 +36,6 @@ export default function UserProfile() {
3836 } ) ;
3937 } ;
4038
41-
42- // const handleSubmit = e => {
43- // setSubmitting(1);
44- // e.preventDefault();
45- // axios({
46- // method: 'post',
47- // url:
48- // 'https://us-central1-codeforcauseorg.cloudfunctions.net/widgets/leads',
49- // data: formData
50- // })
51- // .then(response => {
52- // setSubmitting(0);
53- // })
54- // .catch(error => {});
55- // };
56-
5739 return (
5840 < div >
5941 < form noValidate autoComplete = "off" >
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import { EditApplication } from './EditApplication' ;
3+
4+ import { BrowserRouter as Router , Switch , Route } from 'react-router-dom' ;
5+
6+ function ApplicationsView ( { match } ) {
7+
8+ console . log ( "Matched in routing" , match ) ;
9+
10+ return (
11+ < Router >
12+ < Switch >
13+ < Route path = { `${ match . path } /edit` } component = { EditApplication } />
14+ </ Switch >
15+ </ Router >
16+ ) ;
17+ }
18+
19+ export default ApplicationsView ;
You can’t perform that action at this time.
0 commit comments