1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-04 11:17:02 +02:00
unleash.unleash/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ArchiveFeatureChange.tsx
Thomas Heartman f2766b6b3b
Add various fixes to the CR view (#10231)
Adds a number of small corrections and fixes to (mainly) CR-related
component. Discovered as part of adding the new JSON diff view. Refer to
the various inline comments for explanations.

---------

Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
2025-06-27 12:16:11 +02:00

23 lines
554 B
TypeScript

import type { FC, ReactNode } from 'react';
import { Box, styled } from '@mui/material';
import { ChangeItemWrapper } from './StrategyChange.tsx';
const ArchiveBox = styled(Box)(({ theme }) => ({
display: 'flex',
alignItems: 'center',
color: theme.palette.error.main,
}));
interface IArchiveFeatureChange {
actions?: ReactNode;
}
export const ArchiveFeatureChange: FC<IArchiveFeatureChange> = ({
actions,
}) => (
<ChangeItemWrapper>
<ArchiveBox>Archiving flag</ArchiveBox>
{actions}
</ChangeItemWrapper>
);