Skip to content

Commit

Permalink
fix(Select): removed leftover generic on props type
Browse files Browse the repository at this point in the history
  • Loading branch information
benjitrosch committed Dec 30, 2022
1 parent aa90909 commit ab1d997
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Select/Select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
},
} as Meta

export const Default: Story<SelectProps<string>> = (args) => {
export const Default: Story<SelectProps> = (args) => {
const [value, setValue] = useState('default')

return (
Expand All @@ -40,7 +40,7 @@ export const Default: Story<SelectProps<string>> = (args) => {
)
}

export const FormControlAndLabels: Story<SelectProps<string>> = (args) => {
export const FormControlAndLabels: Story<SelectProps> = (args) => {
return (
<div className="flex w-full component-preview p-4 items-center justify-center gap-2 font-sans">
<div className="form-control w-full max-w-xs">
Expand Down
1 change: 0 additions & 1 deletion src/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export type SelectProps = Omit<
> &
IComponentBaseProps & {
children: ReactElement<SelectOptionProps>[]

size?: ComponentSize
color?: ComponentColor
bordered?: boolean
Expand Down
2 changes: 1 addition & 1 deletion src/Select/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Select, { SelectProps as TSelectProps } from './Select'
export type SelectProps<T> = TSelectProps<T>
export type SelectProps = TSelectProps
export default Select
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export type RatingProps = TRatingProps
// Data Input > Select
export { default as Select } from './Select'
import { SelectProps as TSelectProps } from './Select'
export type SelectProps<T> = TSelectProps<T>
export type SelectProps = TSelectProps

// Data Input > Toggle
export { default as Toggle } from './Toggle'
Expand Down

0 comments on commit ab1d997

Please sign in to comment.