-
Notifications
You must be signed in to change notification settings - Fork 78
Fixed errors on routes [/, /courses, /events, /campusLeaders] #99
base: development
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,7 +54,7 @@ function Apply({ className, ...rest }) { | |
| }} | ||
| {...rest} | ||
| > | ||
| <Grid container maxWidth="lg"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why this?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change it to |
||
| <Grid container> | ||
| <Grid item lg={9} md={12} sm={12} xs={12} className={classes.applyleft}> | ||
| <div className={classes.main}> | ||
| <Typography | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -157,8 +157,12 @@ export default function ApplyNowModal() { | |
| errorMessages={['Please select a country code']} | ||
| fullWidth | ||
| > | ||
| {countryCodes.map(code => { | ||
| return <MenuItem value={`+${code}`}>+{code}</MenuItem>; | ||
| {countryCodes.map((code, index) => { | ||
| return ( | ||
| <MenuItem key={index} value={`+${code}`}> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| +{code} | ||
| </MenuItem> | ||
| ); | ||
| })} | ||
| </SelectValidator> | ||
| </Grid> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,7 +136,7 @@ function CTA({ className, ...rest }) { | |
| </Hidden> | ||
|
|
||
| <Box className={classes.flex}> | ||
| <Grid container xs={12} sm={12}> | ||
| <Grid item container xs={12} sm={12}> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| <Grid item xs={12} sm={12}> | ||
| <Button | ||
| className={classes.Button + ' ' + classes.secondaryBtn} | ||
|
|
@@ -198,7 +198,7 @@ function CTA({ className, ...rest }) { | |
| </Hidden> | ||
|
|
||
| <Box className={classes.flex}> | ||
| <Grid container xs={12} sm={12}> | ||
| <Grid item container xs={12} sm={12}> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| <Grid item xs={12} sm={12}> | ||
| <Button | ||
| className={classes.Button + ' ' + classes.secondaryBtn} | ||
|
|
@@ -260,7 +260,7 @@ function CTA({ className, ...rest }) { | |
| </Hidden> | ||
|
|
||
| <Box className={classes.flex}> | ||
| <Grid container xs={12} sm={12}> | ||
| <Grid item container xs={12} sm={12}> | ||
| <Grid item xs={12} sm={12}> | ||
| <Button | ||
| className={classes.Button + ' ' + classes.secondaryBtn} | ||
|
|
@@ -269,7 +269,7 @@ function CTA({ className, ...rest }) { | |
| target="_blank" | ||
| size="large" | ||
| variant="outlined" | ||
| disabled="true" | ||
| disabled={true} | ||
| > | ||
| Apply Now | ||
| </Button> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -116,28 +116,31 @@ function StandsFor({ className, ...rest }) { | |
| <Box mt={2}> | ||
| <Typography variant="body1"> | ||
| He/she shall be entusiastic about going social and build & | ||
| contribute for the community<h4>- An Initiative taker</h4> | ||
| contribute for the community | ||
| </Typography> | ||
| <Typography variant="h4">- An Initiative taker</Typography> | ||
|
||
| </Box> | ||
| <Box mt={2}> | ||
| <Typography variant="body1"> | ||
| A Leader shall always have a way of talking people out from | ||
| problems and leading them to do that for others too{' '} | ||
| <h4> - A Community Builder</h4> | ||
| </Typography> | ||
| <Typography variant="h4"> - A Community Builder</Typography> | ||
| </Box> | ||
| <Box mt={2}> | ||
| <Typography variant="body1"> | ||
| He/she should be connecting to the resources available in | ||
| community that might help in building a better & more | ||
| helpful community <h4>- A Resource Seeker</h4> | ||
| helpful community | ||
| </Typography> | ||
| <Typography variant="h4">- A Resource Seeker</Typography> | ||
|
||
| </Box> | ||
| <Box mt={2}> | ||
| <Typography variant="body1"> | ||
| Most sought after value - an effort maker and giving | ||
| peronality <h4>- An Investor</h4> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| peronality | ||
| </Typography> | ||
| <Typography variant="h4">- An Investor</Typography> | ||
| </Box> | ||
| </Box> | ||
| </Grid> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -119,7 +119,7 @@ export default function Courses() { | |
| </Typography> | ||
| </Grid> | ||
|
|
||
| <Grid container> | ||
| <Grid container alignItems="center"> | ||
| <Grid | ||
| item | ||
| lg={12} | ||
|
|
@@ -128,8 +128,6 @@ export default function Courses() { | |
| xs={12} | ||
| align="center" | ||
| display="flex" | ||
| justifyContent="center" | ||
| alignItems="center" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| > | ||
| <CoursesGrid courses={foundation} /> | ||
| </Grid> | ||
|
|
@@ -157,7 +155,7 @@ export default function Courses() { | |
| </Typography> | ||
| </Grid> | ||
|
|
||
| <Grid container> | ||
| <Grid container alignItems="center"> | ||
| <Grid | ||
| item | ||
| lg={12} | ||
|
|
@@ -166,8 +164,6 @@ export default function Courses() { | |
| xs={12} | ||
| align="center" | ||
| display="flex" | ||
| justifyContent="center" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| alignItems="center" | ||
| > | ||
| <CoursesGrid courses={advanced} /> | ||
| </Grid> | ||
|
|
@@ -191,7 +187,7 @@ const CoursesGrid = ({ courses }) => { | |
| return ( | ||
| <Grid | ||
| item | ||
| key={course.id} | ||
| key={cname} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. course.id was undefined, and cname was unique |
||
| lg={4} | ||
| md={4} | ||
| sm={6} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -158,7 +158,7 @@ export default function Courses() { | |
| with a purely practical approach to learning. | ||
| </Typography> | ||
| </Grid> | ||
| <Grid container> | ||
| <Grid container alignItems="center"> | ||
| <Grid | ||
| item | ||
| lg={12} | ||
|
|
@@ -167,8 +167,6 @@ export default function Courses() { | |
| xs={12} | ||
| align="center" | ||
| display="flex" | ||
| justifyContent="center" | ||
| alignItems="center" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| > | ||
| <Tabs | ||
| value={value} | ||
|
|
@@ -189,9 +187,7 @@ export default function Courses() { | |
| <Typography variant="h5"> | ||
| <Box fontWeight={600}>Foundation</Box> | ||
| </Typography> | ||
| <Typography variant="body2"> | ||
| <Box>(Reg. Open)</Box> | ||
| </Typography> | ||
| <Typography variant="body2">(Reg. Open)</Typography> | ||
| </Fragment> | ||
| } | ||
| disableRipple={true} | ||
|
|
@@ -203,9 +199,7 @@ export default function Courses() { | |
| <Typography variant="h5"> | ||
| <Box fontWeight={600}>Advanced</Box> | ||
| </Typography> | ||
| <Typography variant="body2"> | ||
| <Box>(Reg. Open)</Box> | ||
| </Typography> | ||
| <Typography variant="body2">(Reg. Open)</Typography> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Box can't be put inside Typography. |
||
| </Fragment> | ||
| } | ||
| disableRipple={true} | ||
|
|
@@ -218,9 +212,7 @@ export default function Courses() { | |
| <Typography variant="h5"> | ||
| <Box fontWeight={600}>Complete</Box> | ||
| </Typography> | ||
| <Typography variant="body2"> | ||
| <Box>(Launching Soon)</Box> | ||
| </Typography> | ||
| <Typography variant="body2">(Launching Soon)</Typography> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| </Fragment> | ||
| } | ||
| disabled | ||
|
|
@@ -232,13 +224,12 @@ export default function Courses() { | |
| <GridList | ||
| className={classes.gridList} | ||
| display="flex" | ||
| alignItems="center" | ||
| cols={large ? 3 : medium ? 2.5 : small ? 1.7 : 1.2} | ||
| > | ||
| {Object.entries(foundation).map(([cname, course], index) => { | ||
| return ( | ||
| <GridListTile | ||
| key={course.id} | ||
| key={cname} | ||
| style={{ | ||
| height: '530px' | ||
| }} | ||
|
|
@@ -257,7 +248,7 @@ export default function Courses() { | |
| {Object.entries(advanced).map(([cname, course], index) => { | ||
| return ( | ||
| <GridListTile | ||
| key={course.id} | ||
| key={cname} | ||
| style={{ | ||
| height: '530px' | ||
| }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -169,7 +169,7 @@ function Events({ className, ...rest }) { | |
| {event.domain} | ||
| </Typography> | ||
| <Typography | ||
| variant="span" | ||
| variant="caption" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. span is not any variant of typography, |
||
| display="inline" | ||
| style={{ | ||
| background: '#1D006E', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,7 +73,7 @@ function Apply({ className, ...rest }) { | |
| }} | ||
| {...rest} | ||
| > | ||
| <Grid container maxWidth="lg"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I think it was intentionally put here, so please change |
||
| <Grid container> | ||
| <Grid | ||
| item | ||
| lg={12} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.