Skip to content

Commit aef3839

Browse files
committed
add header logo showHiveMQText and realign
1 parent 969e0ed commit aef3839

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/modules/Header/HeaderLogo.tsx

+11-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@ export type HeaderLogoProps = BoxProps & {
99
* Alternative text for the logo
1010
*/
1111
alt: string
12+
/**
13+
* Show/hide "HiveMQ" text
14+
*/
15+
showHiveMQText?: boolean
1216
}
1317

1418
/**
1519
* HeaderLogo component
1620
* Second parameter of the forwardRef generic has to be of the component bound to `as` prop
1721
*/
1822
export const HeaderLogo = forwardRef<HeaderLogoProps, 'button'>(
19-
({ children, src, alt, title, as = 'button', ...props }, ref) => {
23+
({ children, src, alt, title, showHiveMQText = true, as = 'button', ...props }, ref) => {
2024
return (
2125
<Box
2226
type="button"
@@ -35,7 +39,12 @@ export const HeaderLogo = forwardRef<HeaderLogoProps, 'button'>(
3539
{...props}
3640
>
3741
<Image src={src} alt={alt} />
38-
<Text as="span" color="white" fontWeight={700} fontSize="1.1rem">
42+
{showHiveMQText && (
43+
<Text as="span" color="white" fontSize="1.2rem">
44+
HiveMQ
45+
</Text>
46+
)}
47+
<Text as="span" color="white" fontWeight={700} fontSize="1.2rem">
3948
{title}
4049
</Text>
4150
</Box>

src/modules/Sidebar/SidebarGroup.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export function SidebarGroup({ Title, children, ...props }: SidebarGroupProps) {
1616
fontWeight={700}
1717
textTransform="uppercase"
1818
color="surface.600"
19+
fontSize="sm"
1920
>
2021
{Title}
2122
</Box>

0 commit comments

Comments
 (0)