From f4a7b6dc6e1c67a52464a29e1c483a43de389986 Mon Sep 17 00:00:00 2001 From: Andcool-Systems Date: Fri, 3 Jan 2025 22:02:29 +0300 Subject: [PATCH] Okay, i'm just little baka --- src/app/modules/components/Search.tsx | 2 ++ src/app/modules/components/SelectWrapper.tsx | 15 --------------- src/app/workshop/[id]/client.tsx | 3 +++ src/app/workshop/[id]/components/edit.tsx | 1 + src/app/workshop/create/page.tsx | 1 + 5 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 src/app/modules/components/SelectWrapper.tsx diff --git a/src/app/modules/components/Search.tsx b/src/app/modules/components/Search.tsx index 3d7cd5b..fc5e553 100644 --- a/src/app/modules/components/Search.tsx +++ b/src/app/modules/components/Search.tsx @@ -106,6 +106,7 @@ export const Search = ({ onChange={(n, _) => onChangeSort(n.value)} value={options_sortir.find(i => i.value === sort)} isSearchable={false} + instanceId='select-ebal-1' /> @@ -118,6 +119,7 @@ export const Search = ({ isSearchable={false} onChange={(n, _) => onChangeTake(n.value)} value={options_take.find(i => i.value === take)} + instanceId='select-ebal-2' /> diff --git a/src/app/modules/components/SelectWrapper.tsx b/src/app/modules/components/SelectWrapper.tsx deleted file mode 100644 index 0ab1663..0000000 --- a/src/app/modules/components/SelectWrapper.tsx +++ /dev/null @@ -1,15 +0,0 @@ -"use client"; - -import dynamic from "next/dynamic"; -const CreatableSelect = dynamic(() => import("react-select/creatable"), { ssr: false }); - - -const SelectWrapper = (props: any) => { - return ( - - ); -} - -export default SelectWrapper; \ No newline at end of file diff --git a/src/app/workshop/[id]/client.tsx b/src/app/workshop/[id]/client.tsx index 98a403e..cb56d9d 100644 --- a/src/app/workshop/[id]/client.tsx +++ b/src/app/workshop/[id]/client.tsx @@ -250,6 +250,7 @@ export default function Home({ data, referrer }: { data: Interfaces.Bandage, ref classNamePrefix='react-select' isSearchable={false} onChange={(n, _) => setPose(n.value)} + instanceId='select-ebal-1' formatOptionLabel={nick_value => nick_value.label} />