Skip to content

Commit

Permalink
Updated tooltip (#687)
Browse files Browse the repository at this point in the history
* feat: added lottie animation library

* style: repositioned the tooltip, fixes #680

* feat: removed topic's tooltip, fixes #680
  • Loading branch information
Ekep-Obasi authored Dec 14, 2023
1 parent ce44d21 commit 57a6bc2
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { TwitData } from './Tweet'

const Wrapper = styled(Flex)(({ theme }) => ({
position: 'absolute',
top: '20px',
right: '20px',
top: '65px',
right: '55px',
width: '300px',
pointerEvents: 'none',
background: colors.dashboardHeader,
Expand Down Expand Up @@ -80,6 +80,10 @@ export const Tooltip = ({ node }: Props) => {
}
}

if (nodeType === 'topic') {
return null
}

return (
<Wrapper borderRadius={8} px={24} py={16}>
{nodeType === 'tweet' ? (
Expand Down

0 comments on commit 57a6bc2

Please sign in to comment.