network-nav
v1.0.56
Published
Custom nav-bar for network permission using
Downloads
20
Readme
network-nav
Custom nav-bar for network permission using
Install
npm install --save network-nav
Usage
import React, { Component } from 'react'
import {NetworkAppNav, NetworkTopNav, NetworkLeftNav} from 'network-nav';
import 'network-nav/dist/index.css';
class Example extends Component {
const menuConfig = {
ogsDomain: appConfig.PERMISSION_DOMAIN,
networkId: appConfig.API_ID,
appName: 'Permission',
params: {
token: token,
userId: this.props.userId,
lang: language,
appId: appConfig.APP_ID
}
};
render() {
return (
<>
<NetworkAppNav service={menuConfig} />
<NetworkTopNav service={menuConfig} />
<NetworkLeftNav service={menuConfig} isShowLabel={isSidebarMini} search={valueSearch}/>
</>
)
}
}
License
MIT © thanghn