Skip to content

Commit

Permalink
fix: make forms work
Browse files Browse the repository at this point in the history
rename usage of reserved react property
  • Loading branch information
martinstark authored and malmen237 committed Apr 25, 2024
1 parent 555bd9f commit fde8cdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/landing-page/form-input-with-loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type TFormInputWithLoader = {
placeholder: string;
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
name: string;
ref: RefCallBack;
inputRef: RefCallBack;
onBlur: ChangeHandler;
type: string;
loading: boolean;
Expand All @@ -23,7 +23,7 @@ export const FormInputWithLoader = ({
placeholder,
onChange,
name,
ref,
inputRef,
onBlur,
type,
loading,
Expand All @@ -36,7 +36,7 @@ export const FormInputWithLoader = ({
className="with-loader"
onChange={onChange}
name={name}
ref={ref}
ref={inputRef}
onBlur={onBlur}
type={type}
placeholder={placeholder}
Expand Down
2 changes: 1 addition & 1 deletion src/components/landing-page/join-production.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const JoinProduction = ({ preSelected }: TProps) => {
label="Production ID"
placeholder="Production ID"
name={name}
ref={ref}
inputRef={ref}
onBlur={onBlur}
type="number"
loading={loading}
Expand Down
2 changes: 1 addition & 1 deletion src/components/manage-productions/manage-productions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const ManageProductions = () => {
label="Production ID"
placeholder="Production ID"
name={name}
ref={ref}
inputRef={ref}
onBlur={onBlur}
type="number"
loading={fetchLoader}
Expand Down

0 comments on commit fde8cdc

Please sign in to comment.