diff --git a/src/ts/App.tsx b/src/ts/App.tsx index 330cf4a..ca47a2d 100644 --- a/src/ts/App.tsx +++ b/src/ts/App.tsx @@ -9,7 +9,9 @@ import * as History from 'history'; import { Main } from './containers/Main'; import { Routes } from './Routes'; -const history = History.createHashHistory(); +import { Layout } from './containers/test/layout/Layout'; + +// const history = History.createHashHistory(); const styles = { container: { @@ -29,12 +31,16 @@ export class App extends React.Component { super(props, context); } - + render() { return ( - - - +
+ + + + + +
); } } diff --git a/src/ts/Routes.tsx b/src/ts/Routes.tsx index 2f8ab0e..79a80fe 100644 --- a/src/ts/Routes.tsx +++ b/src/ts/Routes.tsx @@ -2,22 +2,22 @@ import * as React from 'react'; import { Switch } from 'react-router'; import { Link, Route } from 'react-router-dom'; -import { TopBar } from './containers/test/TopBar'; +// import { TopBar } from './containers/test/TopBar'; import { SignUp } from './containers/test/SignUp'; import { SignIn } from './containers/test/SignIn'; import { PWChange } from './containers/test/PWChange'; import { ProbeDown } from './containers/test/ProbeDown'; import { DiscoveryDetails } from './containers/test/DiscoveryDetails' import { Components } from './containers/test/Components'; -import { Layout } from './containers/test/layout/Layout' +// import { Layout } from './containers/test/layout/Layout' export class Routes extends React.Component { render() { return (
-

React Redux sample

-
  • Layout
  • + {/*

    React Redux sample

    +
  • TopBar
  • Signup
  • SignIn
  • @@ -25,12 +25,12 @@ export class Routes extends React.Component {
  • ProbeDown
  • DiscoveryDetails
  • -
  • Insanity
  • +
  • Insanity
  • */} - - + + diff --git a/src/ts/containers/test/TopBar.tsx b/src/ts/containers/test/TopBar.tsx index ffe579a..da4af3a 100644 --- a/src/ts/containers/test/TopBar.tsx +++ b/src/ts/containers/test/TopBar.tsx @@ -5,7 +5,8 @@ import { Sidebar, Segment, Button, Image, Header, } from 'semantic-ui-react' - +import { Link, Route } from 'react-router-dom'; +import * as History from 'history'; const options = [ { key: 'angular', text: 'Angular', value: 'angular' }, @@ -29,6 +30,8 @@ const options = [ ] + + export class TopBar extends React.Component { constructor(props: any, context: any) { super(props, context); @@ -41,12 +44,23 @@ export class TopBar extends React.Component { render() { + {/*

    React Redux sample

    + +
  • TopBar
  • +
  • Signup
  • +
  • SignIn
  • +
  • PWChange
  • +
  • ProbeDown
  • +
  • DiscoveryDetails
  • +
  • Insanity
  • */} return ( + +
    - Home + Home Probe @@ -64,6 +78,17 @@ export class TopBar extends React.Component { Metrics Alert History + + + SignUp + SignIn + PWChange + ProbeDown + Insanity + DiscoveryDetails + + + @@ -93,7 +118,7 @@ export class TopBar extends React.Component { - + {/* { - + */}
    ); } diff --git a/src/ts/containers/test/layout/Layout.tsx b/src/ts/containers/test/layout/Layout.tsx index d08441f..83edd88 100644 --- a/src/ts/containers/test/layout/Layout.tsx +++ b/src/ts/containers/test/layout/Layout.tsx @@ -3,6 +3,12 @@ import { Container } from 'semantic-ui-react'; import { Header } from './Header'; import { Footer } from './Footer'; +import { Routes } from '../../../Routes'; +import { Router } from 'react-router'; +import * as History from 'history'; + +const history = History.createHashHistory(); + export class Layout extends React.Component { constructor(props: any, context: any) { @@ -14,10 +20,15 @@ export class Layout extends React.Component { render() { return (
    +
    - contents area +
    + + +
    +
    );