From 4b678f24165811da8b0874a088680b4951e1544c Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Tue, 18 Jul 2023 16:16:35 -0400 Subject: [PATCH] add toggle to not show version on logo --- .../features/system/components/InvokeAILogoComponent.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/features/system/components/InvokeAILogoComponent.tsx b/invokeai/frontend/web/src/features/system/components/InvokeAILogoComponent.tsx index 71a711386f..aa4a3dfdfc 100644 --- a/invokeai/frontend/web/src/features/system/components/InvokeAILogoComponent.tsx +++ b/invokeai/frontend/web/src/features/system/components/InvokeAILogoComponent.tsx @@ -5,7 +5,11 @@ import { useRef } from 'react'; import { useHoverDirty } from 'react-use'; import { useGetAppVersionQuery } from 'services/api/endpoints/appInfo'; -const InvokeAILogoComponent = () => { +interface Props { + showVersion?: boolean; +} + +const InvokeAILogoComponent = ({ showVersion = true }: Props) => { const { data: appVersion } = useGetAppVersionQuery(); const ref = useRef(null); const isHovered = useHoverDirty(ref); @@ -28,7 +32,7 @@ const InvokeAILogoComponent = () => { invoke ai - {isHovered && appVersion && ( + {showVersion && isHovered && appVersion && (