Skip to content

Commit

Permalink
Polish new PMC Entity Code display
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed Nov 30, 2023
1 parent 4a8d9f9 commit 2d37d39
Showing 1 changed file with 22 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Skeleton, Tooltip, Typography } from '@mui/material';
import { canEditAny } from '~/common';
import { ActionableSection } from '~/components/ActionableSection';
import { IconButton } from '~/components/IconButton';
import { Redacted } from '~/components/Redacted';
import { PartnerDetailsFragment } from '../../PartnerDetail.graphql';

interface PartnerFinanceSectionHeadingProps {
Expand Down Expand Up @@ -33,14 +34,29 @@ export const PartnerFinanceSectionHeading = ({
</Tooltip>
}
>
<Typography variant="body2" color="textSecondary" gutterBottom>
Transfer Method
<Typography
component="h4"
variant="body2"
color="textSecondary"
gutterBottom
>
PMC Entity Code
</Typography>
<Typography variant="h4">
{!partner?.pmcEntityCode.value ? (
<Skeleton width="75%" />
) : (
<Typography component="p" variant="h4">
{!partner ? (
<Skeleton width="3ch" />
) : !partner.pmcEntityCode.canRead ? (
<Redacted info="You cannot view this partner's code" width="3ch" />
) : partner.pmcEntityCode.value ? (
partner.pmcEntityCode.value
) : (
<Typography
variant="inherit"
color="text.secondary"
sx={{ fontStyle: 'italic' }}
>
None
</Typography>
)}
</Typography>
</ActionableSection>
Expand Down

0 comments on commit 2d37d39

Please sign in to comment.