significant refactor
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
import { Button as MantineButton, ButtonProps as MantineButtonProps } from '@mantine/core';
|
||||
import { forwardRef, ComponentPropsWithoutRef } from 'react';
|
||||
import {
|
||||
Button as MantineButton,
|
||||
ButtonProps as MantineButtonProps,
|
||||
} from "@mantine/core";
|
||||
import { forwardRef, ComponentPropsWithoutRef } from "react";
|
||||
|
||||
type ButtonProps = MantineButtonProps & ComponentPropsWithoutRef<'button'>;
|
||||
type ButtonProps = MantineButtonProps & ComponentPropsWithoutRef<"button">;
|
||||
|
||||
const Button = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {
|
||||
return <MantineButton fullWidth ref={ref} {...props} />;
|
||||
});
|
||||
|
||||
Button.displayName = 'Button';
|
||||
Button.displayName = "Button";
|
||||
export default Button;
|
||||
|
||||
Reference in New Issue
Block a user