mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +00:00
fix(catalog): layout info BC nasconde la navigazione vuota a sinistra
This commit is contained in:
@@ -1,18 +1,24 @@
|
||||
import { FC } from 'react';
|
||||
import { FC, useEffect } from 'react';
|
||||
import { SanitizeHtml } from '../../../../../api';
|
||||
import { CatalogLayoutProps } from './CatalogLayout.types';
|
||||
|
||||
// Info/landing layout: a big logo box (70% of the page height) on top and a
|
||||
// smaller box below holding the page text in black. Logo = page headline
|
||||
// image (getImage(0)), text = page text 1 (getText(0)). Set both from
|
||||
// catalog admin (Gestione -> Modifica pagina).
|
||||
// catalog admin (Gestione -> Modifica pagina). Hides the (empty) navigation
|
||||
// sidebar so the content uses the full width.
|
||||
export const CatalogLayoutBcInfoView: FC<CatalogLayoutProps> = props =>
|
||||
{
|
||||
const { page = null } = props;
|
||||
const { page = null, hideNavigation = null } = props;
|
||||
|
||||
const logo = page?.localization?.getImage(0) || '';
|
||||
const text = page?.localization?.getText(0) || '';
|
||||
|
||||
useEffect(() =>
|
||||
{
|
||||
hideNavigation?.();
|
||||
}, [ page, hideNavigation ]);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col h-full gap-2">
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user