Chip away

This commit is contained in:
Manav Rathi
2024-05-24 18:20:40 +05:30
parent 3b8c48e92d
commit 2cd1dfd720
102 changed files with 186 additions and 206 deletions

View File

@@ -1,5 +1,5 @@
import { ButtonProps, Link, LinkProps } from "@mui/material";
import React, { FC } from "react";
import { Link, type ButtonProps, type LinkProps } from "@mui/material";
import React from "react";
export type LinkButtonProps = React.PropsWithChildren<{
onClick: () => void;
@@ -7,12 +7,9 @@ export type LinkButtonProps = React.PropsWithChildren<{
style?: React.CSSProperties;
}>;
const LinkButton: FC<LinkProps<"button", { color?: ButtonProps["color"] }>> = ({
children,
sx,
color,
...props
}) => {
const LinkButton: React.FC<
LinkProps<"button", { color?: ButtonProps["color"] }>
> = ({ children, sx, color, ...props }) => {
return (
<Link
component="button"