From c0e1747e090dc345a75c39b90fc5db9bdabe8d17 Mon Sep 17 00:00:00 2001 From: "Thomas \"ajnart\" Camlong" Date: Fri, 22 Jul 2022 13:18:03 +0200 Subject: [PATCH] :sparkles: Make logo text togglable on/off --- src/components/layout/Logo.tsx | 40 ++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/src/components/layout/Logo.tsx b/src/components/layout/Logo.tsx index 5e1476e7e..a4530a1de 100644 --- a/src/components/layout/Logo.tsx +++ b/src/components/layout/Logo.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; import { useColorTheme } from '../../tools/color'; import { useConfig } from '../../tools/state'; -export function Logo({ style }: any) { +export function Logo({ style, withoutText }: any) { const { config } = useConfig(); const { primaryColor, secondaryColor } = useColorTheme(); @@ -17,26 +17,28 @@ export function Logo({ style }: any) { position: 'relative', }} /> - - - {config.settings.title || 'Homarr'} - - + + {config.settings.title || 'Homarr'} + + + )} ); }