From 05c802369b9ff649f8cd6089c9fe5f7c3cad959e Mon Sep 17 00:00:00 2001 From: SKINMAKER Date: Sun, 21 Jul 2024 10:15:16 +0900 Subject: [PATCH] feat: Add descriptions for bot categories (#650) * feat: make select option show description * feat: add category descriptions of bot --- components/Form/Selects.tsx | 20 +++++++++++++++++++- pages/addbot.tsx | 8 ++++++-- pages/bots/[id]/edit.tsx | 4 ++-- utils/Constants.ts | 24 ++++++++++++++++++++++++ 4 files changed, 51 insertions(+), 5 deletions(-) diff --git a/components/Form/Selects.tsx b/components/Form/Selects.tsx index b75e15c32d..b4118aab5e 100644 --- a/components/Form/Selects.tsx +++ b/components/Form/Selects.tsx @@ -1,5 +1,10 @@ import React, { MouseEventHandler } from 'react' -import ReactSelect, { components, MultiValueProps, MultiValueRemoveProps } from 'react-select' +import ReactSelect, { + components, + MultiValueProps, + MultiValueRemoveProps, + OptionProps, +} from 'react-select' import { closestCenter, DndContext, DragEndEvent } from '@dnd-kit/core' import { restrictToParentElement } from '@dnd-kit/modifiers' import { @@ -43,6 +48,17 @@ const MultiValueRemove = (props: MultiValueRemoveProps