Skip to content

Commit

Permalink
fix: address all of carsons comments other than fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-soltech committed Nov 2, 2023
1 parent a2ebd92 commit 7d302d3
Showing 1 changed file with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
@@ -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()(() => ({
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 7d302d3

Please sign in to comment.