Skip to content

Commit

Permalink
Do not show the update banner on the main menu.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: fd36446ca04cd832abe201d8a137c2c3ee9ceff8
  • Loading branch information
cpojer committed Nov 1, 2024
1 parent 22ca9d4 commit 45c4052
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hera/ui/NewVersionNotification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function NewVersionNotification({
</Notification>
)}
{hasNewVersion && (
<Notification>
<Notification delay={2000}>
<p>
<fbt desc="New version notification">
Athena Crisis was updated.
Expand Down
3 changes: 3 additions & 0 deletions hera/ui/Notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ReactNode } from 'react';
export default function Notification({
center,
children,
delay = 0,
inline,
inset = 0,
offset = 0,
Expand All @@ -17,6 +18,7 @@ export default function Notification({
}: {
center?: true;
children?: ReactNode;
delay?: number;
inline?: true;
inset?: number;
offset?: number;
Expand Down Expand Up @@ -53,6 +55,7 @@ export default function Notification({
}}
style={insetStyle(inset)}
transition={{
delay: delay / 1000,
duration: 0.25,
ease: [0.34, 1.56, 0.64, 1],
}}
Expand Down

0 comments on commit 45c4052

Please sign in to comment.