diff --git a/src/ts/@overflow/app/views/layout/TitleBar.tsx b/src/ts/@overflow/app/views/layout/TitleBar.tsx index 25e6c7e..ee37c5b 100644 --- a/src/ts/@overflow/app/views/layout/TitleBar.tsx +++ b/src/ts/@overflow/app/views/layout/TitleBar.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { Grid, Container, Breadcrumb, Header, Menu, Input, Segment } from 'semantic-ui-react'; +import { Grid, Container, Breadcrumb, Header, Menu, Input, Segment, Dropdown } from 'semantic-ui-react'; export interface StateProps { @@ -49,7 +49,8 @@ export class TitleBar extends React.Component { public showTitle(): string { let elems: JSX.Element[] = new Array(); let pathArr = this.props.location.split('/'); - return this.capitalizeFirst(pathArr[1]); + let title = pathArr[1].replace(/_/g, ' '); + return title.toUpperCase(); } public handleBreadcrumb = (path: string) => { @@ -59,6 +60,22 @@ export class TitleBar extends React.Component { // temporary public renderBreadcrumb(): JSX.Element[] { + + let options = [ + { + text: 'Probes', + value: 'probes', + }, + { + text: 'Targets', + value: 'targets', + }, + { + text: 'Sensors', + value: 'sensors', + }, + ]; + let elems: JSX.Element[] = new Array(); let pathArr = this.props.location.split('/'); let index: number = 0; @@ -69,8 +86,9 @@ export class TitleBar extends React.Component { elems.push( {this.capitalizeFirst(item)} + {/* */} ); - elems.push(); + elems.push(); } } return elems;