28 lines
695 B
TypeScript
28 lines
695 B
TypeScript
import { Container } from "@material-ui/core";
|
|
import React from "react";
|
|
import { makeStyles } from "@material-ui/core/styles";
|
|
import QuestionAnswersList from "./QuestionAnswerList";
|
|
|
|
const useStyles = makeStyles((theme) => ({
|
|
container: {
|
|
paddingTop: theme.spacing(4),
|
|
paddingBottom: theme.spacing(4),
|
|
flexDirection: "column",
|
|
},
|
|
}));
|
|
|
|
interface MainPageCandidateProps {
|
|
personRowId: number;
|
|
}
|
|
|
|
export function MainPageCandidate(
|
|
props: MainPageCandidateProps
|
|
): React.ReactElement {
|
|
const classes = useStyles();
|
|
return (
|
|
<Container maxWidth="lg" className={classes.container}>
|
|
<QuestionAnswersList personRowId={props.personRowId} />
|
|
</Container>
|
|
);
|
|
}
|