Fix various margins
This commit is contained in:
parent
c4aea2e106
commit
bb0a7e5e04
|
@ -13,7 +13,10 @@ interface ActionButtonProps {
|
|||
|
||||
const ButtonRow = ({ buttons }: ActionButtonProps) => {
|
||||
return (
|
||||
<Grid2 container spacing={2}>
|
||||
<Grid2
|
||||
container
|
||||
spacing={2}
|
||||
>
|
||||
{buttons.map((button) => {
|
||||
return (
|
||||
<Button
|
||||
|
|
|
@ -17,7 +17,7 @@ interface ReviewFieldOpts {
|
|||
|
||||
const ReviewField = ({ fields }: ReviewFieldOpts) => {
|
||||
return (
|
||||
<Box component="form" noValidate autoComplete="off">
|
||||
<Box sx={{margin: "20px 0"}}>
|
||||
<Stack spacing={1}>
|
||||
{fields.map((field) => {
|
||||
const [errorText, setErrorText] = useState("");
|
||||
|
|
|
@ -27,7 +27,6 @@ function ShowReviews({ reviews }: ShowReviewsProps) {
|
|||
<Slide
|
||||
direction="up"
|
||||
in
|
||||
del
|
||||
mountOnEnter
|
||||
key={review.id}
|
||||
>
|
||||
|
|
|
@ -154,31 +154,26 @@ function Home({ endpoint, setEndpoint, secure, setSecure }: HomeProps) {
|
|||
<div id="app">
|
||||
<Typography variant="h3">Simple Review Client</Typography>
|
||||
|
||||
<br />
|
||||
|
||||
<Rating
|
||||
name="review-rating"
|
||||
precision={0.5}
|
||||
size="large"
|
||||
value={rating}
|
||||
sx={{marginTop: "10px"}}
|
||||
onChange={(event, newRating) => {
|
||||
event
|
||||
setNewRating(newRating);
|
||||
}}
|
||||
/>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<ReviewField fields={fields} />
|
||||
|
||||
<br />
|
||||
|
||||
<ButtonRow buttons={buttons} />
|
||||
|
||||
<br />
|
||||
|
||||
<div id="alert-box">
|
||||
<div
|
||||
id="alert-box"
|
||||
style={{margin: "20px 0"}}
|
||||
>
|
||||
<Grow in={showAlert} mountOnEnter unmountOnExit>
|
||||
{alert}
|
||||
</Grow>
|
||||
|
|
Loading…
Reference in a new issue