Skip to content

Commit

Permalink
fix: Billing Contact UI Regression from by MUI Update (#9667)
Browse files Browse the repository at this point in the history
* fix billing contact mui grid

* Added changeset: Billing Contact UI Regression caused by MUI Update

---------

Co-authored-by: Banks Nussman <[email protected]>
  • Loading branch information
bnussman-akamai and bnussman authored Sep 13, 2023
1 parent e5ec3e3 commit f1692a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-9667-fixed-1694576063628.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Billing Contact UI Regression caused by MUI Update ([#9667](https://github.com/linode/manager/pull/9667))
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Box } from 'src/components/Box';
import Grid from '@mui/material/Unstable_Grid2';
import { styled } from '@mui/material/styles';
import countryData from 'country-region-data';
Expand Down Expand Up @@ -104,7 +103,7 @@ const ContactInformation = (props: Props) => {
(_country) => _country.countryShortCode === country
)?.countryName;

const sxBox = {
const sxGrid = {
flex: 1,
maxWidth: '100%',
position: 'relative',
Expand Down Expand Up @@ -140,7 +139,7 @@ const ContactInformation = (props: Props) => {
state ||
zip ||
country) && (
<Box sx={sxBox}>
<Grid sx={sxGrid}>
{(firstName || lastName) && (
<StyledTypography
data-qa-contact-name
Expand Down Expand Up @@ -170,10 +169,9 @@ const ContactInformation = (props: Props) => {
{city && state && ','} {state} {zip}
</StyledTypography>
<StyledTypography>{countryName}</StyledTypography>
</Box>
</Grid>
)}

<Box sx={sxBox}>
<Grid sx={sxGrid}>
<StyledTypography
data-qa-contact-email
sx={{ wordBreak: 'break-all' }}
Expand All @@ -188,7 +186,7 @@ const ContactInformation = (props: Props) => {
<strong>Tax ID</strong> {taxId}
</StyledTypography>
)}
</Box>
</Grid>
</Grid>
</BillingPaper>
<BillingContactDrawer
Expand Down

0 comments on commit f1692a2

Please sign in to comment.