Skip to content

Commit 31498d0

Browse files
fix: Billing Summary UI Regression from MUI Update (#9622)
Co-authored-by: Banks Nussman <banks@nussman.us>
1 parent 2a6d3da commit 31498d0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/manager/src/features/Billing/BillingPanels/BillingSummary/BillingSummary.tsx

+3-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ActivePromotion } from '@linode/api-v4/lib/account/types';
33
import { GridSize } from '@mui/material/Grid';
44
import Grid from '@mui/material/Unstable_Grid2';
55
import { Breakpoint } from '@mui/material/styles';
6-
import { styled, useTheme } from '@mui/material/styles';
6+
import { useTheme } from '@mui/material/styles';
77
import * as React from 'react';
88
import { useHistory, useLocation, useRouteMatch } from 'react-router-dom';
99

@@ -23,10 +23,6 @@ import PaymentDrawer from './PaymentDrawer';
2323
import PromoDialog from './PromoDialog';
2424
import { PromoDisplay } from './PromoDisplay';
2525

26-
const GridContainer = styled(Grid)({
27-
marginBottom: 0,
28-
});
29-
3026
interface BillingSummaryProps {
3127
balance: number;
3228
balanceUninvoiced: number;
@@ -163,7 +159,7 @@ export const BillingSummary = (props: BillingSummaryProps) => {
163159

164160
return (
165161
<>
166-
<GridContainer container spacing={2} xs={12}>
162+
<Grid container margin={0} spacing={2} xs={12}>
167163
<Grid {...gridDimensions} sm={6}>
168164
<BillingPaper variant="outlined">
169165
<Typography variant="h3">Account Balance</Typography>
@@ -257,7 +253,7 @@ export const BillingSummary = (props: BillingSummaryProps) => {
257253
</Box>
258254
</BillingPaper>
259255
</Grid>
260-
</GridContainer>
256+
</Grid>
261257
<PaymentDrawer
262258
onClose={closePaymentDrawer}
263259
open={paymentDrawerOpen}

0 commit comments

Comments
 (0)