Skip to content

Commit

Permalink
vertical buttons option
Browse files Browse the repository at this point in the history
  • Loading branch information
andracc committed Dec 18, 2024
1 parent 3cd0c6f commit ce7b9dc
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/components/AnalyticsConsent/AnalyticsConsent.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, List } from "@mui/material";
import { List, ListItemButton, Typography } from "@mui/material";
import Drawer from "@mui/material/Drawer";
import { ReactElement } from "react";

Expand Down Expand Up @@ -27,8 +27,18 @@ export function AnalyticsConsent(props: ConsentProps): ReactElement {
onClose={!props.required ? clickedAway : undefined}
>
<List>
<Button onClick={acceptAnalytics}>Accept</Button>
<Button onClick={rejectAnalytics}>Reject</Button>
<ListItemButton
onClick={acceptAnalytics}
style={{ justifyContent: "center" }}
>
<Typography>Accept</Typography>
</ListItemButton>
<ListItemButton
onClick={rejectAnalytics}
style={{ justifyContent: "center" }}
>
<Typography>Reject</Typography>
</ListItemButton>
</List>
</Drawer>
</div>
Expand Down

0 comments on commit ce7b9dc

Please sign in to comment.