Catalog updates

This commit is contained in:
Bill 2021-07-07 05:05:49 -04:00
parent 4cdd89c25b
commit 7669d2bc9c
3 changed files with 10 additions and 14 deletions

View File

@ -44,7 +44,7 @@ export const CatalogNavigationItemView: FC<CatalogNavigationItemViewProps> = pro
}, [ page, setActiveChild ]);
return (
<div className="col pe-1 pb-1 catalog-navigation-item-container">
<div className="col pb-1 catalog-navigation-item-container">
<div className={ 'd-flex align-items-center cursor-pointer catalog-navigation-item ' + (isActive ? 'active ': '') } onClick={ select }>
<CatalogIconView icon={ page.icon } />
<div className="flex-grow-1 text-black text-truncate px-1">{ page.localization }</div>

View File

@ -87,12 +87,10 @@ export const CatalogPageView: FC<CatalogPageViewProps> = props =>
return;
}
// const windowData = Nitro.instance.sessionDataManager.getWallItemDataByName('ads_twi_windw');
const windowData = GetSessionDataManager().getWallItemDataByName('noob_window_double');
if(windowData) roomPreviewer.addWallItemIntoRoom(windowData.id, new Vector3d(90, 0, 0), windowData.customParams);
// if(windowData)
// {
// this._roomPreviewer.addWallItemIntoRoom(windowData.id, new Vector3d(90), windowData.customParams)
// }
return;
}
}

View File

@ -70,15 +70,13 @@ export const CatalogLayoutSpacesView: FC<CatalogLayoutSpacesViewProps> = props =
return (
<div className="row h-100 nitro-catalog-layout-spaces">
<div className="col-7 h-100 d-flex flex-column">
<div className="d-flex">
<div className="d-flex col-7 flex-column h-100 overflow-hidden">
<div className="btn-group mx-auto mb-1 w-100">
{ groupNames.map((name, index) =>
{
return <button key={ index } type="button" className={ 'btn btn-primary btn-sm ' + ((activeGroupIndex === index) ? 'active ' : '' )} onClick={ event => setActiveGroupIndex(index) }>{ LocalizeText(`catalog.spaces.tab.${ name }`) }</button>
})}
</div>
</div>
<CatalogPageOffersView offers={ groups[activeGroupIndex] } />
</div>
{ !product &&