feat: centralize layout logo fallbacks
This commit is contained in:
@@ -55,8 +55,8 @@ const Layout: React.FC<LayoutProps> = ({ children, header = defaultHeaderData, f
|
||||
const NAV = header.navItems;
|
||||
const SECONDARY = header.secondaryLinks;
|
||||
const SOCIAL = header.socialLinks;
|
||||
const logo = header.logo?.url || '/bmp-logo.png';
|
||||
const footerLogo = footer.logo?.url || '/bmp-logo.png';
|
||||
const logo = header.logo?.url || defaultHeaderData.logo?.url || '';
|
||||
const footerLogo = footer.logo?.url || defaultFooterData.logo?.url || '';
|
||||
const headerCtas = header.ctas;
|
||||
const footerCtas = footer.ctas;
|
||||
const fallbackHeaderCtas = defaultHeaderData.ctas;
|
||||
|
||||
Reference in New Issue
Block a user