Skip to content

Commit db6783b

Browse files
committed
Remove unused styling
1 parent 6fa75cd commit db6783b

File tree

3 files changed

+7
-38
lines changed

3 files changed

+7
-38
lines changed

src/app/components/AnalyticsConsent/index.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,8 @@ export const ReopenAnalyticsConsentButton = () => {
103103
const context = useContext(AnalyticsContext)
104104
if (context === null) throw new Error('must be used within AnalyticsContext')
105105
return (
106-
<Link asChild className="text-muted-foreground">
107-
<button
108-
type="button"
109-
onClick={() => context.reopenAnalyticsConsent()}
110-
className="bg-transparent p-0 cursor-pointer"
111-
>
106+
<Link asChild textColor="inherit">
107+
<button type="button" onClick={() => context.reopenAnalyticsConsent()}>
112108
{t('analyticsConsent.settings')}
113109
</button>
114110
</Link>
@@ -135,11 +131,7 @@ export const AnalyticsConsentView = (props: {
135131
t={t}
136132
components={{
137133
PrivacyPolicyLink: (
138-
<Link
139-
href={import.meta.env.REACT_APP_PRIVACY_POLICY}
140-
target="_blank"
141-
className="font-normal underline"
142-
/>
134+
<Link href={import.meta.env.REACT_APP_PRIVACY_POLICY} target="_blank" className="underline" />
143135
),
144136
}}
145137
values={{ acceptButtonLabel: t('analyticsConsent.acceptButtonLabel') }}

src/app/components/PageLayout/Footer.tsx

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const Footer: FC<FooterProps> = ({ scope, mobileSearchAction, enableMobil
4646
<>
4747
<div className="flex items-center">
4848
{import.meta.env.REACT_APP_BUILD_SHA && (
49-
<Typography variant="xsmall" textColor="muted" className="text-xs">
49+
<Typography variant="xsmall" textColor="muted">
5050
<Trans
5151
t={t}
5252
i18nKey="footer.version"
@@ -57,7 +57,6 @@ export const Footer: FC<FooterProps> = ({ scope, mobileSearchAction, enableMobil
5757
rel="noopener noreferrer"
5858
target="_blank"
5959
textColor="inherit"
60-
className="text-xs"
6160
/>
6261
) : (
6362
<>-</>
@@ -68,7 +67,6 @@ export const Footer: FC<FooterProps> = ({ scope, mobileSearchAction, enableMobil
6867
rel="noopener noreferrer"
6968
target="_blank"
7069
textColor="inherit"
71-
className="text-xs"
7270
/>
7371
),
7472
}}
@@ -97,24 +95,13 @@ export const Footer: FC<FooterProps> = ({ scope, mobileSearchAction, enableMobil
9795
<div className="flex gap-2 pl-1">
9896
<Typography variant="xsmall" textColor="muted">
9997
{' | '}
100-
<Link
101-
href={api.spec}
102-
rel="noopener noreferrer"
103-
target="_blank"
104-
textColor="inherit"
105-
className="text-xs"
106-
>
98+
<Link href={api.spec} rel="noopener noreferrer" target="_blank" textColor="inherit">
10799
{t('footer.apiDocs')}
108100
</Link>
109101
</Typography>
110102
<Typography variant="xsmall" textColor="muted">
111-
<Link
112-
href={github.home}
113-
rel="noopener noreferrer"
114-
target="_blank"
115-
textColor="inherit"
116-
className="text-xs"
117-
>
103+
{' | '}
104+
<Link href={github.home} rel="noopener noreferrer" target="_blank" textColor="inherit">
118105
{t('footer.github')}
119106
</Link>
120107
</Typography>

src/styles/theme/defaultTheme.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ declare module '@mui/material/Button' {
4646

4747
declare module '@mui/material/Typography' {
4848
interface TypographyPropsVariantOverrides {
49-
footer: true
5049
select: true
5150
mono: true
5251
}
@@ -522,15 +521,6 @@ export const defaultTheme = createTheme({
522521
fontWeight: 700,
523522
}),
524523
},
525-
{
526-
props: { variant: 'footer' },
527-
style: ({ theme }) => ({
528-
color: theme.palette.layout.main,
529-
fontWeight: 400,
530-
fontSize: '12px',
531-
lineHeight: '18px',
532-
}),
533-
},
534524
{
535525
props: { variant: 'select' },
536526
style: () => ({

0 commit comments

Comments
 (0)