From 7d302d37f2fb62d182beeb2db5817bd58139dfca Mon Sep 17 00:00:00 2001 From: adam-soltech <adam.lang@soltech.net> Date: Thu, 19 Oct 2023 12:13:04 -0700 Subject: [PATCH] fix: address all of carsons comments other than fragments --- .../Tabs/Profile/PartnerContactSection.tsx | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/scenes/Partners/Detail/Tabs/Profile/PartnerContactSection.tsx b/src/scenes/Partners/Detail/Tabs/Profile/PartnerContactSection.tsx index abf9ee5175..496d41d41a 100644 --- a/src/scenes/Partners/Detail/Tabs/Profile/PartnerContactSection.tsx +++ b/src/scenes/Partners/Detail/Tabs/Profile/PartnerContactSection.tsx @@ -1,8 +1,7 @@ -import { Box, CardContent, Skeleton, Typography } from '@mui/material'; +import { Box, CardContent, Typography } from '@mui/material'; import { makeStyles } from 'tss-react/mui'; import { canEditAny } from '~/common'; import { EditableSection } from '~/components/EditableSection'; -import { Redacted } from '~/components/Redacted'; import { PartnerDetailsFragment } from '../../PartnerDetail.graphql'; const useStyles = makeStyles()(() => ({ @@ -51,24 +50,6 @@ export const PartnerContactSection = ({ <Typography variant="body2" color="textSecondary" gutterBottom> Business Address </Typography> - <Typography - variant="h4" - color={!partner?.address.value ? 'textSecondary' : undefined} - > - {!partner ? ( - <> - <Skeleton width="75%" /> - <Skeleton width="50%" /> - </> - ) : !partner.address.canRead ? ( - <Redacted - info="You don't have permission to view this partner's address" - width="75%" - /> - ) : ( - partner.address.value || 'Add Address' - )} - </Typography> </CardContent> </Box> </section>