mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-09 23:15:46 +01:00
✨ Make logo text togglable on/off
This commit is contained in:
@@ -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,6 +17,7 @@ export function Logo({ style }: any) {
|
||||
position: 'relative',
|
||||
}}
|
||||
/>
|
||||
{withoutText ? null : (
|
||||
<NextLink
|
||||
href="/"
|
||||
style={{
|
||||
@@ -37,6 +38,7 @@ export function Logo({ style }: any) {
|
||||
{config.settings.title || 'Homarr'}
|
||||
</Text>
|
||||
</NextLink>
|
||||
)}
|
||||
</Group>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user