From cd518ddfffe7b51cf4531a788854cabdd3cea471 Mon Sep 17 00:00:00 2001 From: navedqb Date: Sat, 30 Sep 2023 19:14:32 +0530 Subject: [PATCH] Fixes double react import --- apps/docs/content/components/input/custom-impl.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/docs/content/components/input/custom-impl.ts b/apps/docs/content/components/input/custom-impl.ts index e73cc23204..a19fb22d9d 100644 --- a/apps/docs/content/components/input/custom-impl.ts +++ b/apps/docs/content/components/input/custom-impl.ts @@ -43,9 +43,7 @@ const CloseFilledIcon = `export const CloseFilledIcon = (props) => ( );`; -const App = `import React, {forwardRef} from "react"; -import {useInput} from "@nextui-org/react"; - +const App = `import {useInput} from "@nextui-org/react"; import {SearchIcon} from "./SearchIcon"; import {CloseFilledIcon} from "./CloseFilledIcon"; @@ -72,7 +70,7 @@ const styles = { ], }; -const MyInput = forwardRef((props, ref) => { +const MyInput = React.forwardRef((props, ref) => { const { Component, label,