-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cell props per header * type of header is string * fix arg types * fix: integrate onSubmit helper * fix: use mutation * fix: required options * fix: split lines * fix: export first name schema * fix: input file button * fix: split * fix: array schema * include list tag * get nested property * on page change or rows per page change * add todo
- Loading branch information
Showing
13 changed files
with
209 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { | ||
type FC, | ||
type DetailedHTMLProps, | ||
type InputHTMLAttributes, | ||
} from "react" | ||
import { Button, type ButtonProps } from "@mui/material" | ||
|
||
export interface InputFileButtonProps | ||
extends Omit<ButtonProps<"label">, "component"> { | ||
inputProps?: Omit< | ||
DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, | ||
"type" | "hidden" | ||
> | ||
} | ||
|
||
const InputFileButton: FC<InputFileButtonProps> = ({ | ||
children, | ||
inputProps, | ||
...otherButtonProps | ||
}) => ( | ||
<Button component="label" {...otherButtonProps}> | ||
{children} | ||
<input type="file" hidden {...inputProps} /> | ||
</Button> | ||
) | ||
|
||
export default InputFileButton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import * as yup from "yup" | ||
|
||
// TODO: restrict character set; no special characters | ||
export const firstNameSchema = yup.string().max(150) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.