diff options
Diffstat (limited to 'frontend/src/components/shared/IconButton.jsx')
-rw-r--r-- | frontend/src/components/shared/IconButton.jsx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/frontend/src/components/shared/IconButton.jsx b/frontend/src/components/shared/IconButton.jsx deleted file mode 100644 index 3031720a..00000000 --- a/frontend/src/components/shared/IconButton.jsx +++ /dev/null @@ -1,19 +0,0 @@ -//@flow -import { Button, Icon } from '@blueprintjs/core'; -import type { IconName } from '@blueprintjs/icons'; -import * as React from 'react'; - -type IconButtonProps = { - icon: IconName, - title?: string | false | null, - [string]: any, -} - -export const IconButton = ({icon, title, ...props}: IconButtonProps) => { - if (title) { - // this works around https://github.com/palantir/blueprint/issues/2321 - const iconWithoutTitle = <Icon icon={icon} title={false} />; - return <Button {...props} icon={iconWithoutTitle} title={title} />; - } - return <Button {...props} icon={icon} />; -}; |