This commit is contained in:
Manav Rathi 2025-01-17 10:03:33 +05:30
parent 9e91029105
commit 38895eaf56
No known key found for this signature in database
2 changed files with 1 additions and 7 deletions

View File

@ -69,7 +69,7 @@ const Page: React.FC = () => {
onSubmit={onSubmit}
buttonText={t("enable")}
/>
<LinkButton sx={{ mt: 1 }} onClick={router.back}>
<LinkButton onClick={router.back}>
{t("go_back")}
</LinkButton>
</Stack>

View File

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