mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
494 B
TypeScript
18 lines
494 B
TypeScript
import { styled, alpha } from '@mui/material';
|
|
import { Button } from 'react-admin';
|
|
|
|
export const DangerButton = styled(Button, {
|
|
name: 'DangerBtn',
|
|
overridesResolver: (props, styles) => styles.root,
|
|
})(({ theme }) => ({
|
|
color: theme.palette.error.main,
|
|
'&:hover': {
|
|
backgroundColor: alpha(theme.palette.error.main, 0.12),
|
|
// Reset on mouse devices
|
|
'@media (hover: none)': {
|
|
backgroundColor: 'transparent',
|
|
},
|
|
},
|
|
}));
|
|
DangerButton.displayName = 'DangerButton';
|