feat: add tooltips for icon buttons
This commit is contained in:
@@ -10,6 +10,7 @@ import { shallowEqual, useSelector } from 'react-redux';
|
||||
import { useInView } from 'react-intersection-observer';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Button, Icon, Loader } from 'semantic-ui-react';
|
||||
import { Tooltip } from '../../../lib/custom-ui';
|
||||
|
||||
import selectors from '../../../selectors';
|
||||
import { BoardMembershipRoles } from '../../../constants/Enums';
|
||||
@@ -74,14 +75,16 @@ const ListView = React.memo(
|
||||
</span>
|
||||
</Button>
|
||||
{onCardPaste && clipboard && canPasteCard && (
|
||||
<Button
|
||||
type="button"
|
||||
disabled={!onCardCreate}
|
||||
className={classNames(styles.addCardButton, styles.paste)}
|
||||
onClick={onCardPaste}
|
||||
>
|
||||
<Icon fitted name="paste" />
|
||||
</Button>
|
||||
<Tooltip content={t('action.paste')}>
|
||||
<Button
|
||||
type="button"
|
||||
disabled={!onCardCreate}
|
||||
className={classNames(styles.addCardButton, styles.paste)}
|
||||
onClick={onCardPaste}
|
||||
>
|
||||
<Icon fitted name="paste" />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
)}
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user