Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
more
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
myarmolinsky committed Mar 25, 2024
1 parent 4716fdb commit 3e44703
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/AutoUIApp/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
import React from 'react';
import { Flex, FlexProps, Heading } from 'rendition';
import { Heading } from 'rendition';
import { Material } from '@balena/ui-shared-components';
const { Box } = Material;

interface NavbarProps extends FlexProps {
interface NavbarProps extends Material.BoxProps {
title: string;
logo?: string;
}

export const Navbar = ({ title, logo, ...flexProps }: NavbarProps) => {
export const Navbar = ({ title, logo, ...boxProps }: NavbarProps) => {
return (
<Flex bg="secondary.main" alignItems="center" {...flexProps}>
<Box
display="flex"
bgcolor="secondary.main"
alignItems="center"
{...boxProps}
>
{logo && <img src={logo} alt={title} height="50px" />}
<Heading color="white">{title}</Heading>
</Flex>
</Box>
);
};

0 comments on commit 3e44703

Please sign in to comment.