Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Intern like NUX
Browse files Browse the repository at this point in the history
Summary: Ideally we would also make it pulse. But there was a style collision with Antd's styles so let's leave it static for now

Reviewed By: LukeDefeo

Differential Revision: D56705092

fbshipit-source-id: 93c27fcd16cae8c1815fcb1683167c6d750cca22
  • Loading branch information
antonk52 authored and facebook-github-bot committed Apr 29, 2024
1 parent 35f7c0f commit 72c8b20
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions desktop/flipper-plugin/src/ui/NUX.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,27 @@ const UnanimatedBadge = styled(Badge)(({count}) => ({
},
}));

const Pulse = styled.div({
cursor: 'pointer',
background: theme.warningColor,
opacity: 0.6,
borderRadius: 20,
height: 12,
width: 12,
':hover': {
opacity: `1 !important`,
background: theme.errorColor,
animationPlayState: 'paused',
},
});
const Pulse = (props: object & {style?: React.CSSProperties}) => (
<div
{...props}
style={{
...props.style,
background: 'rgba(64, 128, 255, .5)',
width: 12,
height: 12,
cursor: 'pointer',
borderRadius: '50%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}>
<div
style={{
background: '#3578e5',
width: 8,
height: 8,
borderRadius: '50%',
}}
/>
</div>
);

0 comments on commit 72c8b20

Please # to comment.