Skip to content

Commit 1f84a62

Browse files
committed
fix(tsx): fixing colors and size
1 parent e6099f4 commit 1f84a62

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ui/components/Card/CardHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import styles from '../../assets/jss/material-dashboard-react/components/cardHea
55

66
const useStyles = makeStyles(styles);
77

8-
type CardHeaderColor = 'warning' | 'success' | 'danger' | 'info' | 'primary' | 'rose';
8+
export type CardHeaderColor = 'warning' | 'success' | 'danger' | 'info' | 'primary' | 'rose';
99

1010
interface CardHeaderProps extends React.ComponentProps<'div'> {
1111
className?: string;

src/ui/components/CustomButtons/Button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ type Color =
1717
| 'transparent';
1818
type Size = 'sm' | 'lg';
1919

20-
interface RegularButtonProps extends ButtonProps {
21-
customColor?: Color;
20+
interface RegularButtonProps extends Omit<ButtonProps, 'color' | 'size'> {
21+
color?: Color;
2222
round?: boolean;
2323
disabled?: boolean;
2424
simple?: boolean;
25-
customSize?: Size;
25+
size?: Size;
2626
block?: boolean;
2727
link?: boolean;
2828
justIcon?: boolean;

0 commit comments

Comments
 (0)