mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14: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 ]);
|
}, [ page, setActiveChild ]);
|
||||||
|
|
||||||
return (
|
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 }>
|
<div className={ 'd-flex align-items-center cursor-pointer catalog-navigation-item ' + (isActive ? 'active ': '') } onClick={ select }>
|
||||||
<CatalogIconView icon={ page.icon } />
|
<CatalogIconView icon={ page.icon } />
|
||||||
<div className="flex-grow-1 text-black text-truncate px-1">{ page.localization }</div>
|
<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;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -70,14 +70,12 @@ export const CatalogLayoutSpacesView: FC<CatalogLayoutSpacesViewProps> = props =
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="row h-100 nitro-catalog-layout-spaces">
|
<div className="row h-100 nitro-catalog-layout-spaces">
|
||||||
<div className="col-7 h-100 d-flex flex-column">
|
<div className="d-flex col-7 flex-column h-100 overflow-hidden">
|
||||||
<div className="d-flex">
|
<div className="btn-group mx-auto mb-1 w-100">
|
||||||
<div className="btn-group mx-auto mb-1 w-100">
|
{ groupNames.map((name, index) =>
|
||||||
{ 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>
|
||||||
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>
|
</div>
|
||||||
<CatalogPageOffersView offers={ groups[activeGroupIndex] } />
|
<CatalogPageOffersView offers={ groups[activeGroupIndex] } />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user