Skip to content
Snippets Groups Projects
Unverified Commit e2144d14 authored by Raphael Krut-Landau's avatar Raphael Krut-Landau Committed by GitHub
Browse files

Remove dead props in getButtonOverrides (#44082)

parent 837beda6
Branches
Tags
No related merge requests found
......@@ -5,8 +5,6 @@ import type {
} from "@mantine/core";
import { getStylesRef, rem } from "@mantine/core";
import type { ExtraButtonProps } from ".";
export const getButtonOverrides = (): MantineThemeOverride["components"] => ({
Button: {
defaultProps: {
......@@ -17,10 +15,7 @@ export const getButtonOverrides = (): MantineThemeOverride["components"] => ({
color: "currentColor",
},
},
styles: (
theme: MantineTheme,
{ compact, animate }: ButtonStylesParams & ExtraButtonProps,
) => {
styles: (theme: MantineTheme, { compact }: ButtonStylesParams) => {
return {
root: {
height: "auto",
......@@ -37,7 +32,6 @@ export const getButtonOverrides = (): MantineThemeOverride["components"] => ({
marginLeft: 0,
},
},
...(animate ? {} : { "&:active": { transform: "none" } }),
},
label: {
ref: getStylesRef("label"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment