Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Billing Summary UI Regression from MUI Update #9622

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ActivePromotion } from '@linode/api-v4/lib/account/types';
import { GridSize } from '@mui/material/Grid';
import Grid from '@mui/material/Unstable_Grid2';
import { Breakpoint } from '@mui/material/styles';
import { styled, useTheme } from '@mui/material/styles';
import { useTheme } from '@mui/material/styles';
import * as React from 'react';
import { useHistory, useLocation, useRouteMatch } from 'react-router-dom';

Expand All @@ -23,10 +23,6 @@ import PaymentDrawer from './PaymentDrawer';
import PromoDialog from './PromoDialog';
import { PromoDisplay } from './PromoDisplay';

const GridContainer = styled(Grid)({
marginBottom: 0,
});

interface BillingSummaryProps {
balance: number;
balanceUninvoiced: number;
Expand Down Expand Up @@ -163,7 +159,7 @@ export const BillingSummary = (props: BillingSummaryProps) => {

return (
<>
<GridContainer container spacing={2} xs={12}>
<Grid container margin={0} spacing={2} xs={12}>
<Grid {...gridDimensions} sm={6}>
<BillingPaper variant="outlined">
<Typography variant="h3">Account Balance</Typography>
Expand Down Expand Up @@ -257,7 +253,7 @@ export const BillingSummary = (props: BillingSummaryProps) => {
</Box>
</BillingPaper>
</Grid>
</GridContainer>
</Grid>
<PaymentDrawer
onClose={closePaymentDrawer}
open={paymentDrawerOpen}
Expand Down