From 2901d19db053f44b9158526904cfe307435ef6b0 Mon Sep 17 00:00:00 2001 From: Bagasbanuna02 Date: Wed, 9 Jul 2025 11:52:38 +0800 Subject: [PATCH] fix deksripsi: - fix Text input exported --- .../(user)/portofolio/[id]/create.tsx | 28 +++++++++---------- components/TextInput/TextInputCustom.tsx | 4 ++- components/TextInput/index.ts | 3 -- components/index.ts | 26 +++++++++++------ 4 files changed, 35 insertions(+), 26 deletions(-) delete mode 100644 components/TextInput/index.ts diff --git a/app/(application)/(user)/portofolio/[id]/create.tsx b/app/(application)/(user)/portofolio/[id]/create.tsx index 3673875..80cf9ea 100644 --- a/app/(application)/(user)/portofolio/[id]/create.tsx +++ b/app/(application)/(user)/portofolio/[id]/create.tsx @@ -1,19 +1,19 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import { - ButtonCustom, - Grid, - SelectCustom, - Spacing, - StackCustom, - TextAreaCustom, - TextCustom, - TextInputCustom, - ViewWrapper, + BoxButtonOnFooter, + ButtonCenteredOnly, + ButtonCustom, + Grid, + InformationBox, + LandscapeFrameUploaded, + SelectCustom, + Spacing, + StackCustom, + TextAreaCustom, + TextCustom, + TextInputCustom, + ViewWrapper, } from "@/components"; -import BoxButtonOnFooter from "@/components/Box/BoxButtonOnFooter"; -import InformationBox from "@/components/Box/InformationBox"; -import ButtonCenteredOnly from "@/components/Button/ButtonCenteredOnly"; -import LandscapeFrameUploaded from "@/components/Image/LandscapeFrameUploaded"; import { MainColor } from "@/constants/color-palet"; import dummyMasterBidangBisnis from "@/lib/dummy-data/master-bidang-bisnis"; import dummyMasterSubBidangBisnis from "@/lib/dummy-data/master-sub-bidang-bisnis"; @@ -101,7 +101,7 @@ export default function PortofolioCreate() { - + console.log("add")}> Tambah Pilihan diff --git a/components/TextInput/TextInputCustom.tsx b/components/TextInput/TextInputCustom.tsx index bd1087a..438e961 100644 --- a/components/TextInput/TextInputCustom.tsx +++ b/components/TextInput/TextInputCustom.tsx @@ -27,7 +27,7 @@ type Props = { maxLength?: number; } & Omit, "style">; -export const TextInputCustom = ({ +const TextInputCustom = ({ iconLeft, iconRight, label, @@ -127,3 +127,5 @@ export const TextInputCustom = ({ ); }; + +export default TextInputCustom; diff --git a/components/TextInput/index.ts b/components/TextInput/index.ts deleted file mode 100644 index 9188ebc..0000000 --- a/components/TextInput/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { TextInputCustom } from "./TextInputCustom"; - -export { TextInputCustom }; diff --git a/components/index.ts b/components/index.ts index 9bc6a81..6f5c2f9 100644 --- a/components/index.ts +++ b/components/index.ts @@ -14,32 +14,43 @@ import ViewWrapper from "./_ShareComponent/ViewWrapper"; // Text import TextCustom from "./Text/TextCustom"; // TextInput -import { TextInputCustom } from "./TextInput/TextInputCustom"; +import TextInputCustom from "./TextInput/TextInputCustom"; // TextArea import TextAreaCustom from "./TextArea/TextAreaCustom"; // Grid import Grid from "./Grid/GridCustom"; // Box import BaseBox from "./Box/BaseBox"; -// Avatar -import AvatarCustom from "./Image/AvatarCustom"; +import BoxButtonOnFooter from "./Box/BoxButtonOnFooter"; +import InformationBox from "./Box/InformationBox"; + // Stack import StackCustom from "./Stack/StackCustom"; // Select import SelectCustom from "./Select/SelectCustom"; +// Image +import AvatarCustom from "./Image/AvatarCustom"; +import LandscapeFrameUploaded from "./Image/LandscapeFrameUploaded"; export { AlertCustom, - // Avatar + // Image AvatarCustom, + LandscapeFrameUploaded, // Button LeftButtonCustom as BackButton, // Box - BaseBox, ButtonCenteredOnly, ButtonCustom, ButtonUpload, + BaseBox, + ButtonCenteredOnly, + ButtonCustom, + ButtonUpload, + BoxButtonOnFooter, + InformationBox, // Drawer DrawerCustom, // Grid - Grid, MenuDrawerDynamicGrid, + Grid, + MenuDrawerDynamicGrid, // Select SelectCustom, // ShareComponent @@ -53,6 +64,5 @@ export { // TextInput TextInputCustom, // ViewWrapper - ViewWrapper + ViewWrapper, }; -