mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-19 17:52:45 +02:00
## About the changes Refactoring the colors for the light theme to be much easier to continue with dark mode This is the first step to finish dark mode https://linear.app/unleash/project/[low][s][alpha]-dark-mode-in-unleash-admin-ui-31b407d13c4b/1 This PR uses `main-theme` as a placeholder for `dark-theme` for now due to the new changes. Still need to set the correct values here. --------- Co-authored-by: Nuno Góis <github@nunogois.com>
30 lines
787 B
TypeScript
30 lines
787 B
TypeScript
import { Box, Divider, styled } from '@mui/material';
|
|
import { FC, VFC } from 'react';
|
|
|
|
const StyledContainer = styled(Box)(({ theme }) => ({
|
|
display: 'flex',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
padding: theme.spacing(0, 1.5),
|
|
}));
|
|
|
|
const StyledDivider = styled(Divider)(({ theme }) => ({
|
|
borderColor: theme.palette.divider,
|
|
height: theme.spacing(3),
|
|
margin: theme.spacing(0, 2),
|
|
}));
|
|
|
|
const ActionCellDivider: VFC = () => (
|
|
<StyledDivider orientation="vertical" variant="middle" />
|
|
);
|
|
|
|
const ActionCellComponent: FC & {
|
|
Divider: typeof ActionCellDivider;
|
|
} = ({ children }) => {
|
|
return <StyledContainer>{children}</StyledContainer>;
|
|
};
|
|
|
|
ActionCellComponent.Divider = ActionCellDivider;
|
|
|
|
export const ActionCell = ActionCellComponent;
|