1
0
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:
Thomas Heartman 2025-07-02 13:40:48 +02:00
parent 564c3ec2ba
commit 8bb4f4b75c

View File

@ -1,11 +1,11 @@
import { styled, Typography } from '@mui/material';
import type { PropsWithChildren } from 'react';
import { styled, Typography, type TypographyProps } from '@mui/material';
import type { FC, PropsWithChildren } from 'react';
export const Action = styled(({ children, ...props }: PropsWithChildren) => (
export const Action: FC<TypographyProps> = ({ children, ...props }) => (
<Typography component='span' {...props}>
{children}
</Typography>
))(({ theme }) => ({}));
);
export const Deleted = styled(Action)(({ theme }) => ({
color: theme.palette.error.main,