refactor: export and use components props

This commit is contained in:
rusconn
2022-04-06 20:28:17 +09:00
parent dfb6461eef
commit a06ea5bad9
29 changed files with 119 additions and 112 deletions

View File

@@ -1,7 +1,7 @@
import { TextField } from "@mui/material";
import { ComponentPropsWithoutRef, memo } from "react";
import { TextField, TextFieldProps } from "@mui/material";
import { memo } from "react";
type Props = ComponentPropsWithoutRef<typeof TextField>;
export type Props = TextFieldProps;
const StyledComponent = (props: Props) => (
<TextField