diff --git a/examples/Default/index.jsx b/examples/Default/index.jsx index 29d4e97..3b8397b 100644 --- a/examples/Default/index.jsx +++ b/examples/Default/index.jsx @@ -1,4 +1,6 @@ import Breadcrumbs from '@trendmicro/react-breadcrumbs'; +import { Button, ButtonGroup } from '@trendmicro/react-buttons'; +import Dropdown, { MenuItem } from '@trendmicro/react-dropdown'; import ensureArray from 'ensure-array'; import React, { PureComponent } from 'react'; import styled from 'styled-components'; @@ -29,7 +31,7 @@ export default class extends PureComponent { 'home': 'Home', 'devices': ['Devices'], 'reports': ['Reports'], - 'settings/policy': ['Settings', 'Policy'], + 'settings/policies': ['Settings', 'Policies'], 'settings/network': ['Settings', 'Network'] }; @@ -50,14 +52,50 @@ export default class extends PureComponent { ); } + + navigate = (pathname) => () => { + this.setState({ selected: pathname }); + }; + render() { const { expanded, selected } = this.state; return (