This repository was archived by the owner on Mar 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathEditApplication.js
More file actions
57 lines (51 loc) · 1.39 KB
/
EditApplication.js
File metadata and controls
57 lines (51 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import React, { useState } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { Grid, Typography } from '@material-ui/core';
import { ApplicationSteps } from './ApplicationSteps';
const useStyles = makeStyles(theme => ({
root: {
padding: theme.spacing(10, 10, 10),
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
[theme.breakpoints.down('md')]: {
padding: theme.spacing(10, 3, 10)
}
}
}));
export function EditApplication() {
const classes = useStyles();
const urlParams = new URLSearchParams(window.location.search);
const applicationId = urlParams.get('id');
const [courseTitle, setCourseTitle] = useState('');
return (
<Grid container className={classes.root}>
<Grid item lg={12} md={12} sm={12} xs={12}>
<Typography
variant="h2"
align="center"
style={{
marginBottom: '12px'
}}
>
Fill the Application to be Considered for
</Typography>
<Typography
variant="h3"
align="center"
style={{
color: '#A60000'
}}
>
{courseTitle}
</Typography>
</Grid>
<Grid item lg={6} md={6} sm={12} xs={12}>
<ApplicationSteps
applicationId={applicationId}
setCourseTitle={setCourseTitle}
/>
</Grid>
</Grid>
);
}