Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,297 changes: 1,706 additions & 1,591 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/components/TextField/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type TextFieldProps = FieldProps &
CustomTextFieldProps

export const TextField = forwardRef(({
field: { onBlur: fieldOnBlur, ...restFieldProps },
field: { onBlur: fieldOnBlur, onChange: fieldOnChange, ...restFieldProps },
form: { isSubmitting, touched, errors },
fullWidth = true,
size = "small",
Expand All @@ -29,6 +29,7 @@ export const TextField = forwardRef(({
helperText,
hiddenLabel,
ariaLabel,
onChange,
...props
}: TextFieldProps, ref) => {
const fieldError = getIn(errors, restFieldProps.name) as string;
Expand All @@ -41,6 +42,8 @@ export const TextField = forwardRef(({

const _onBlur = onBlur ?? ((event) => fieldOnBlur(event ?? restFieldProps.name));

const _onChange = onChange ?? fieldOnChange;

return (
<FormControl
fullWidth={fullWidth}
Expand All @@ -62,6 +65,7 @@ export const TextField = forwardRef(({
aria-describedby={helperTextId}
inputProps={{ "aria-label": ariaLabel }}
ref={ref}
onChange={_onChange}
{...props}
{...restFieldProps}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Toast/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export const Toast = ({ message, autoHideDuration, onExited, ...rest }: ToastPro
};

return (
<Snackbar key={message.key} open={open} autoHideDuration={autoHideDuration || 5000} onClose={handleClose} TransitionProps={{ onExited }} {...rest}>
<Alert severity={message.severity} sx={{ width: "100%" }} variant="filled">
<Snackbar key={message.key} open={open} autoHideDuration={autoHideDuration || 6000} onClose={handleClose} TransitionProps={{ onExited }} {...rest}>
<Alert onClose={handleClose} severity={message.severity} sx={{ width: "100%" }} variant="filled">
{message.message}
</Alert>
</Snackbar>
Expand Down
Loading