mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 15:30:40 +00:00
Unprop
This commit is contained in:
parent
9e91029105
commit
38895eaf56
@ -69,7 +69,7 @@ const Page: React.FC = () => {
|
|||||||
onSubmit={onSubmit}
|
onSubmit={onSubmit}
|
||||||
buttonText={t("enable")}
|
buttonText={t("enable")}
|
||||||
/>
|
/>
|
||||||
<LinkButton sx={{ mt: 1 }} onClick={router.back}>
|
<LinkButton onClick={router.back}>
|
||||||
{t("go_back")}
|
{t("go_back")}
|
||||||
</LinkButton>
|
</LinkButton>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
import { Link, type ButtonProps, type LinkProps } from "@mui/material";
|
import { Link, type ButtonProps, type LinkProps } from "@mui/material";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
export type LinkButtonProps = React.PropsWithChildren<{
|
|
||||||
onClick: () => void;
|
|
||||||
variant?: string;
|
|
||||||
style?: React.CSSProperties;
|
|
||||||
}>;
|
|
||||||
|
|
||||||
const LinkButton: React.FC<
|
const LinkButton: React.FC<
|
||||||
LinkProps<"button", { color?: ButtonProps["color"] }>
|
LinkProps<"button", { color?: ButtonProps["color"] }>
|
||||||
> = ({ children, sx, color, ...props }) => {
|
> = ({ children, sx, color, ...props }) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user