mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
Unprop
This commit is contained in:
parent
9e91029105
commit
38895eaf56
@ -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>
|
||||
|
@ -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 }) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user