mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 06:40:50 +01:00
Catalog updates
This commit is contained in:
parent
4cdd89c25b
commit
7669d2bc9c
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -70,14 +70,12 @@ 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="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 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>
|
||||
<CatalogPageOffersView offers={ groups[activeGroupIndex] } />
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user