1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-28 17:55:15 +02:00
unleash.unleash/frontend/src/component/common/ConstraintAccordion/ConstraintIcon.tsx
Fredrik Strand Oseberg 6818a82cd1 Feat/dark mode exp (#1137)
* feat: add dark mode theme

* fix: feature metrics

* fix: add color

* styling

* fix: add switch

* fix: form sidebar

* fix: remove console log

* fix: add properties

* fix: strategy container

* feat: feature flag

* fix: tests

* fix: build

* fix: logo

* fix: icon

* fix: update snapshots

* fix: CES operator

* fix: typography

* fix: input styling

* fix: remove initial load

* fix: change flag name

* fix: refactor to custom hook

* fix: remove unused import

* fix: dialog headers

* fix: use uiConfig flags instead of flags
2022-08-23 14:20:02 +02:00

30 lines
785 B
TypeScript

import { VFC } from 'react';
import { Box } from '@mui/material';
import { TrackChanges } from '@mui/icons-material';
interface IConstraintIconProps {
compact?: boolean;
}
export const ConstraintIcon: VFC<IConstraintIconProps> = ({ compact }) => (
<Box
sx={{
backgroundColor: 'primary.light',
p: compact ? '1px' : '2px',
borderRadius: '50%',
width: compact ? '18px' : '24px',
height: compact ? '18px' : '24px',
marginRight: '13px',
}}
>
<TrackChanges
sx={{
fill: 'white',
display: 'block',
width: compact ? '16px' : '20px',
height: compact ? '16px' : '20px',
}}
/>
</Box>
);