aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-15 16:12:24 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:52 +0300
commita87c3fcaafc8c839ae1263f84502634ef61081ec (patch)
treeeaac74b23d924248f4104749370a50a123c8acfa /vnext/src/components
parent60e2fe05bd65480ac175378d5bb6cc903b8b1132 (diff)
switch to react-router
Diffstat (limited to 'vnext/src/components')
-rw-r--r--vnext/src/components/Navigation.js42
1 files changed, 0 insertions, 42 deletions
diff --git a/vnext/src/components/Navigation.js b/vnext/src/components/Navigation.js
deleted file mode 100644
index 95693d81..00000000
--- a/vnext/src/components/Navigation.js
+++ /dev/null
@@ -1,42 +0,0 @@
-import React from 'react';
-
-export default class Navigation extends React.Component {
- constructor(props) {
- super(props);
- this.state = {
- visitor: {uid: 0}
- }
- this.transition = this.transition.bind(this);
- }
- transition(event) {
- event.preventDefault();
- this.props.onNavigate({ pathname: event.currentTarget.pathname, search: event.currentTarget.search});
- };
- render() {
- return (
- <header>
- <div id="header_wrapper">
- <div id="logo"><a href="/" onClick={this.transition}>Juick</a></div>
- <nav id="global">
- <ul>
- { this.state.visitor.uid ?
- <li><a href="/?show=discuss" onClick={this.transition}><i data-icon="ei-comment" data-size="s"></i>Discuss</a></li>
- :
- <li><a href="/?show=photos" rel="nofollow" onClick={this.transition}><i data-icon="ei-camera" data-size="s"></i>Photos</a></li>
- }
- <li><a href="/?show=all" rel="nofollow" onClick={this.transition}><i data-icon="ei-search" data-size="s"></i>Discover</a></li>
- <li><a id="post" href="/post" onClick={this.transition}><i data-icon="ei-pencil" data-size="s"></i>Post</a>
- </li>
- </ul>
- </nav>
- <div id="search">
- <form action="/">
- <input name="search" className="text"
- placeholder="Search..." />
- </form>
- </div>
- </div>
- </header>
- )
- }
-}