🚑️(react) fix unexisting import
Since b72d0d5c90 InputRefType doesn't
exist.
We missed some usage of it that are removed in this fix.
This commit is contained in:
@@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
|
||||
import { useForm } from "react-hook-form";
|
||||
import * as Yup from "yup";
|
||||
import React, { useRef } from "react";
|
||||
import { Input, InputRefType } from ":/components/Forms/Input/index";
|
||||
import { Input } from ":/components/Forms/Input/index";
|
||||
import { Button } from ":/components/Button";
|
||||
import {
|
||||
getFieldState,
|
||||
@@ -166,7 +166,7 @@ export const NonControlled = () => {
|
||||
};
|
||||
|
||||
export const WithRef = () => {
|
||||
const ref = useRef<InputRefType>(null);
|
||||
const ref = useRef<HTMLInputElement>(null);
|
||||
return (
|
||||
<div>
|
||||
<Input label="Your identity" ref={ref} />
|
||||
|
||||
Reference in New Issue
Block a user