Skip to content

Commit

Permalink
remove div
Browse files Browse the repository at this point in the history
  • Loading branch information
andracc committed Jan 16, 2025
1 parent 97e5a2b commit fb66732
Showing 1 changed file with 32 additions and 38 deletions.
70 changes: 32 additions & 38 deletions src/components/AnalyticsConsent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,46 +35,40 @@ export default function AnalyticsConsent(props: ConsentProps): ReactElement {
}

return (
<>
<Drawer
anchor={"bottom"}
open
onClose={!props.required ? clickedAway : undefined}
PaperProps={{ style: { padding: 20 } }}
>
<Grid container direction={isXs ? "column" : "row"} alignItems="center">
<Grid xs>
<Typography
variant="h6"
style={{ color: themeColors.primary, fontWeight: 600 }}
gutterBottom
>
{t("analyticsConsent.consentModal.title")}
</Typography>
<Typography
variant="body1"
style={{ marginRight: 25 }}
gutterBottom
>
{t("analyticsConsent.consentModal.description")}
</Typography>
<Drawer
anchor={"bottom"}
open
onClose={!props.required ? clickedAway : undefined}
PaperProps={{ style: { padding: 20 } }}
>
<Grid container direction={isXs ? "column" : "row"} alignItems="center">
<Grid xs>
<Typography
variant="h6"
style={{ color: themeColors.primary, fontWeight: 600 }}
gutterBottom
>
{t("analyticsConsent.consentModal.title")}
</Typography>
<Typography variant="body1" style={{ marginRight: 25 }} gutterBottom>
{t("analyticsConsent.consentModal.description")}
</Typography>
</Grid>
<Grid item container xs="auto" spacing={1}>
<Grid item>
<ConsentButton
decision={acceptAnalytics}
text={t("analyticsConsent.consentModal.acceptAllBtn")}
></ConsentButton>
</Grid>
<Grid item container xs="auto" spacing={1}>
<Grid item>
<ConsentButton
decision={acceptAnalytics}
text={t("analyticsConsent.consentModal.acceptAllBtn")}
></ConsentButton>
</Grid>
<Grid item>
<ConsentButton
decision={rejectAnalytics}
text={t("analyticsConsent.consentModal.acceptNecessaryBtn")}
></ConsentButton>
</Grid>
<Grid item>
<ConsentButton
decision={rejectAnalytics}
text={t("analyticsConsent.consentModal.acceptNecessaryBtn")}
></ConsentButton>
</Grid>
</Grid>
</Drawer>
</>
</Grid>
</Drawer>
);
}

0 comments on commit fb66732

Please sign in to comment.