Skip to content

Commit

Permalink
revised PartnerDataButton removing color and added status label and t… (
Browse files Browse the repository at this point in the history
  • Loading branch information
atGit2021 authored Dec 12, 2023
1 parent 015f35f commit 9a96937
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scenes/Partners/Detail/PartnerDetail.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useQuery } from '@apollo/client';
import { Edit } from '@mui/icons-material';
import { Edit, Timeline as TimelineIcon } from '@mui/icons-material';
import { TabContext, TabList, TabPanel } from '@mui/lab';
import {
Box,
Expand Down Expand Up @@ -130,12 +130,13 @@ const PartnerHeader = ({ partner, editPartner }: PartnerViewEditProps) => {
const PartnerDataButtons = ({ partner, editPartner }: PartnerViewEditProps) => (
<Box mt={3} mb={2} display="flex" gap={2}>
<DataButton
label="Status"
onClick={() => editPartner('active')}
secured={partner?.active}
startIcon={<TimelineIcon color="info" />}
redacted="You do not have permission to view Status"
children={partner?.active.value ? 'Active' : 'Inactive'}
loading={!partner}
color={partner?.active.value ? 'success' : 'error'}
/>
</Box>
);
Expand Down

0 comments on commit 9a96937

Please sign in to comment.