[yoga-11] add common type and add logo
This commit is contained in:
@@ -13,11 +13,10 @@ export interface MenuItem{
|
||||
}
|
||||
export interface Props{
|
||||
menuItems: MenuItem[];
|
||||
imageSrc?: string;
|
||||
}
|
||||
|
||||
const Nav: FC<Props> = ({menuItems}:Props) => {
|
||||
|
||||
|
||||
const Nav: FC<Props> = ({menuItems, imageSrc}:Props) => {
|
||||
|
||||
return (
|
||||
<header>
|
||||
@@ -25,7 +24,7 @@ const Nav: FC<Props> = ({menuItems}:Props) => {
|
||||
<div className="container-fluid">
|
||||
<nav className="navbar navbar-expand-lg navbar-light p-0">
|
||||
<Link className="navbar-brand" href="/">
|
||||
<figure className="mb-0"><YogaImageComponent src="/assets/images/yogastic_logo.png" alt=""/>
|
||||
<figure className="mb-0"> {imageSrc && <YogaImageComponent src={imageSrc} alt=""/>}
|
||||
</figure>
|
||||
</Link>
|
||||
<button className="navbar-toggler collapsed" type="button" data-toggle="collapse"
|
||||
|
||||
Reference in New Issue
Block a user