From ce879bb9dc1064b5223d525b08a784b14ce402af Mon Sep 17 00:00:00 2001 From: Iacopo Leardini Date: Fri, 19 Apr 2024 11:33:36 +0200 Subject: [PATCH] Fix Dropdown component export and types --- src/stories/Dropdown/Dropdown.stories.tsx | 4 ++-- src/stories/Dropdown/index.tsx | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/stories/Dropdown/Dropdown.stories.tsx b/src/stories/Dropdown/Dropdown.stories.tsx index 1c7e94f..b1bca32 100644 --- a/src/stories/Dropdown/Dropdown.stories.tsx +++ b/src/stories/Dropdown/Dropdown.stories.tsx @@ -1,5 +1,5 @@ import { Meta, StoryFn } from "@storybook/react"; -import Dropdown, { DropdownProps } from "."; +import { Dropdown } from "."; import { colourOptions } from "./data"; export default { @@ -7,7 +7,7 @@ export default { component: Dropdown, } as Meta; -const Template: StoryFn = (args) => { +const Template: StoryFn = (args) => { return ; }; diff --git a/src/stories/Dropdown/index.tsx b/src/stories/Dropdown/index.tsx index e0c568f..4a14043 100644 --- a/src/stories/Dropdown/index.tsx +++ b/src/stories/Dropdown/index.tsx @@ -2,13 +2,11 @@ import ReactSelect, { Props, GroupBase, StylesConfig } from "react-select5"; import { aqTheme, customComponents } from "./styles"; import { aqBootstrapTheme } from "../theme/defaultTheme"; -export interface DropdownProps extends Props {} - -function Dropdown< +export function Dropdown< Option, IsMulti extends boolean = false, Group extends GroupBase