Skip to content

Commit

Permalink
Allow number type for id in ButtonGroup (#8352)
Browse files Browse the repository at this point in the history
* add missing right border on tables

* Update Table.tsx

* Update Table.tsx

* Update Table.tsx
  • Loading branch information
salazarm committed Jun 13, 2022
1 parent 5db2182 commit 8f43d56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface Props<T> {
onClick: (id: T, e: React.MouseEvent<HTMLButtonElement>) => void;
}

export const ButtonGroup = <T extends string>(props: Props<T>) => {
export const ButtonGroup = <T extends string | number>(props: Props<T>) => {
const {activeItems, buttons, onClick} = props;
return (
<Box flex={{direction: 'row', alignItems: 'center', gap: 4}}>
Expand Down

1 comment on commit 8f43d56

@vercel
Copy link

@vercel vercel bot commented on 8f43d56 Jun 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dagit-storybook – ./js_modules/dagit/packages/ui

dagit-storybook.vercel.app
dagit-storybook-git-master-elementl.vercel.app
dagit-storybook-elementl.vercel.app

Please sign in to comment.