From 45c4052d502d694b8d7c69ad4668a6d5442a1f16 Mon Sep 17 00:00:00 2001 From: cpojer Date: Fri, 1 Nov 2024 09:27:36 +0900 Subject: [PATCH] Do not show the update banner on the main menu. GitOrigin-RevId: fd36446ca04cd832abe201d8a137c2c3ee9ceff8 --- hera/ui/NewVersionNotification.tsx | 2 +- hera/ui/Notification.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hera/ui/NewVersionNotification.tsx b/hera/ui/NewVersionNotification.tsx index b105dfe2..ad91b1d0 100644 --- a/hera/ui/NewVersionNotification.tsx +++ b/hera/ui/NewVersionNotification.tsx @@ -83,7 +83,7 @@ export default function NewVersionNotification({ )} {hasNewVersion && ( - +

Athena Crisis was updated. diff --git a/hera/ui/Notification.tsx b/hera/ui/Notification.tsx index 286d057e..4730f071 100644 --- a/hera/ui/Notification.tsx +++ b/hera/ui/Notification.tsx @@ -9,6 +9,7 @@ import { ReactNode } from 'react'; export default function Notification({ center, children, + delay = 0, inline, inset = 0, offset = 0, @@ -17,6 +18,7 @@ export default function Notification({ }: { center?: true; children?: ReactNode; + delay?: number; inline?: true; inset?: number; offset?: number; @@ -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], }}