mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-30 00:50:50 +01:00
Center the catalog header
This commit is contained in:
parent
981e0d65f6
commit
43f3f1895e
@ -17,7 +17,7 @@ export const CatalogHeaderView: FC<CatalogHeaderViewProps> = props =>
|
|||||||
setDisplayImageUrl(imageUrl ?? GetConfiguration<string>('catalog.asset.image.url').replace('%name%', 'catalog_header_roombuilder'));
|
setDisplayImageUrl(imageUrl ?? GetConfiguration<string>('catalog.asset.image.url').replace('%name%', 'catalog_header_roombuilder'));
|
||||||
}, [ imageUrl ]);
|
}, [ imageUrl ]);
|
||||||
|
|
||||||
return <Flex center shrink className="nitro-catalog-header">
|
return <Flex center fullWidth className="nitro-catalog-header">
|
||||||
<img src={ displayImageUrl } onError={ ({ currentTarget }) =>
|
<img src={ displayImageUrl } onError={ ({ currentTarget }) =>
|
||||||
{
|
{
|
||||||
currentTarget.src = GetConfiguration<string>('catalog.asset.image.url').replace('%name%', 'catalog_header_roombuilder');
|
currentTarget.src = GetConfiguration<string>('catalog.asset.image.url').replace('%name%', 'catalog_header_roombuilder');
|
||||||
|
Loading…
Reference in New Issue
Block a user