Skip to content

Commit

Permalink
fix: product home tooltip
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy committed Sep 19, 2024
1 parent 14a8158 commit 2f74804
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ A list of "things" to improve

## Now
- [ ] fix unit tests - re-enable those that are skipped
- [ ] improve test coverage


## Soon
- [ ] make filters a dropdown overlay
- [ ] theme: restore ability to toggle theme (DARK and System)
- [ ] clear out all TODOs in this project
- [ ] fix root of `findDOMNode is deprecated and will be removed in the next major release.` console error

## Later
- [ ] advanced feature for Bitbucket "Your Work" queue
Expand Down
9 changes: 7 additions & 2 deletions src/components/ProductNotifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Tooltip from '@atlaskit/tooltip';
import { AppContext } from '../context/App';
import type { AtlassifyNotification } from '../types';
import { openExternalLink } from '../utils/comms';
import { formatProperCase } from '../utils/helpers';
import { getProductDetails } from '../utils/products';
import { NotificationRow } from './NotificationRow';

Expand Down Expand Up @@ -54,8 +55,12 @@ export const ProductNotifications: FC<IProductNotifications> = ({
>
<Flex alignItems="center" justifyContent="space-between">
<Tooltip
content={productDetails.home ? 'Open product home' : ''}
position="bottom"
content={
productDetails.home
? `Open ${formatProperCase(productDetails.name)}`
: ''
}
position="right"
>
<Button
appearance="subtle"
Expand Down

0 comments on commit 2f74804

Please sign in to comment.