mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 23:50:52 +01:00
Remove old files
This commit is contained in:
parent
8be14aebb0
commit
241348e5f2
@ -1,4 +1,3 @@
|
|||||||
@import './header/CatalogPageHeaderView';
|
|
||||||
@import './layout/CatalogLayout';
|
@import './layout/CatalogLayout';
|
||||||
@import './offer/CatalogPageOfferView';
|
@import './offer/CatalogPageOfferView';
|
||||||
@import './offers/CatalogPageOffersView';
|
@import './offers/CatalogPageOffersView';
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
.nitro-catalog-page-header {
|
|
||||||
padding-top: $container-padding-x;
|
|
||||||
}
|
|
@ -1,28 +0,0 @@
|
|||||||
import { FC } from 'react';
|
|
||||||
import { useCatalogContext } from '../../../context/CatalogContext';
|
|
||||||
import { CatalogIconView } from '../../catalog-icon/CatalogIconView';
|
|
||||||
import { CatalogPageHeaderViewProps } from './CatalogPageHeaderView.types';
|
|
||||||
|
|
||||||
export const CatalogPageHeaderView: FC<CatalogPageHeaderViewProps> = props =>
|
|
||||||
{
|
|
||||||
const { catalogState = null } = useCatalogContext();
|
|
||||||
const { currentPage = null, pageParser = null } = catalogState;
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="container-fluid nitro-catalog-page-header bg-light">
|
|
||||||
<div className="row h-100">
|
|
||||||
<div className="col-2">
|
|
||||||
<CatalogIconView icon={ currentPage.icon } />
|
|
||||||
</div>
|
|
||||||
<div className="d-flex col-10 flex-column">
|
|
||||||
<div className="d-block">
|
|
||||||
{ currentPage.localization }
|
|
||||||
</div>
|
|
||||||
{ pageParser && <div className="d-block">
|
|
||||||
{ pageParser.localization.texts[0] }
|
|
||||||
</div> }
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
import { ICatalogPageParser } from 'nitro-renderer';
|
|
||||||
|
|
||||||
export interface CatalogPageHeaderViewProps
|
|
||||||
{
|
|
||||||
pageParser: ICatalogPageParser;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user