mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-04 11:17:02 +02:00
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>
23 lines
554 B
TypeScript
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>
|
|
);
|