mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
change component impl
This commit is contained in:
parent
564c3ec2ba
commit
8bb4f4b75c
@ -1,11 +1,11 @@
|
|||||||
import { styled, Typography } from '@mui/material';
|
import { styled, Typography, type TypographyProps } from '@mui/material';
|
||||||
import type { PropsWithChildren } from 'react';
|
import type { FC, PropsWithChildren } from 'react';
|
||||||
|
|
||||||
export const Action = styled(({ children, ...props }: PropsWithChildren) => (
|
export const Action: FC<TypographyProps> = ({ children, ...props }) => (
|
||||||
<Typography component='span' {...props}>
|
<Typography component='span' {...props}>
|
||||||
{children}
|
{children}
|
||||||
</Typography>
|
</Typography>
|
||||||
))(({ theme }) => ({}));
|
);
|
||||||
|
|
||||||
export const Deleted = styled(Action)(({ theme }) => ({
|
export const Deleted = styled(Action)(({ theme }) => ({
|
||||||
color: theme.palette.error.main,
|
color: theme.palette.error.main,
|
||||||
|
Loading…
Reference in New Issue
Block a user