|
|
@ -2,6 +2,7 @@ import React, { Component } from 'react' |
|
|
|
import { connect } from 'react-redux' |
|
|
|
import { connect } from 'react-redux' |
|
|
|
import styled from 'styled-components' |
|
|
|
import styled from 'styled-components' |
|
|
|
import { Link } from 'react-router-dom' |
|
|
|
import { Link } from 'react-router-dom' |
|
|
|
|
|
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' |
|
|
|
|
|
|
|
|
|
|
|
import { logout } from '../utils/Auth' |
|
|
|
import { logout } from '../utils/Auth' |
|
|
|
import { polygonReset } from '../actions' |
|
|
|
import { polygonReset } from '../actions' |
|
|
@ -26,11 +27,11 @@ class Nav extends Component { |
|
|
|
</StyledLink> |
|
|
|
</StyledLink> |
|
|
|
<div className="navbar-dropdown is-boxed"> |
|
|
|
<div className="navbar-dropdown is-boxed"> |
|
|
|
<StyledLink to={`/fare/rules/new`} className="navbar-item"> |
|
|
|
<StyledLink to={`/fare/rules/new`} className="navbar-item"> |
|
|
|
<i className="fas fa-plus" /> |
|
|
|
<FontAwesomeIcon icon="plus"/> |
|
|
|
new fare rule |
|
|
|
new fare rule |
|
|
|
</StyledLink> |
|
|
|
</StyledLink> |
|
|
|
<StyledLink to={`/fare/attributes/new`} className="navbar-item"> |
|
|
|
<StyledLink to={`/fare/attributes/new`} className="navbar-item"> |
|
|
|
<i className="fas fa-plus" /> |
|
|
|
<FontAwesomeIcon icon="plus"/> |
|
|
|
new fare attributes |
|
|
|
new fare attributes |
|
|
|
</StyledLink> |
|
|
|
</StyledLink> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -41,7 +42,7 @@ class Nav extends Component { |
|
|
|
</StyledLink> |
|
|
|
</StyledLink> |
|
|
|
<div className="navbar-dropdown is-boxed"> |
|
|
|
<div className="navbar-dropdown is-boxed"> |
|
|
|
<StyledLink to={`/calendar/new`} className="navbar-item"> |
|
|
|
<StyledLink to={`/calendar/new`} className="navbar-item"> |
|
|
|
<i className="fas fa-plus" /> |
|
|
|
<FontAwesomeIcon icon="plus"/> |
|
|
|
new service calendar |
|
|
|
new service calendar |
|
|
|
</StyledLink> |
|
|
|
</StyledLink> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -58,7 +59,7 @@ class Nav extends Component { |
|
|
|
</StyledLink> |
|
|
|
</StyledLink> |
|
|
|
))} |
|
|
|
))} |
|
|
|
<StyledLink to={`/agency/new`} className="navbar-item"> |
|
|
|
<StyledLink to={`/agency/new`} className="navbar-item"> |
|
|
|
<i className="fas fa-plus" /> |
|
|
|
<FontAwesomeIcon icon="plus"/> |
|
|
|
Add new agency |
|
|
|
Add new agency |
|
|
|
</StyledLink> |
|
|
|
</StyledLink> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -96,7 +97,7 @@ class Nav extends Component { |
|
|
|
<a className="button is-primary" |
|
|
|
<a className="button is-primary" |
|
|
|
onClick={() => polygonReset()}> |
|
|
|
onClick={() => polygonReset()}> |
|
|
|
<span className="icon"> |
|
|
|
<span className="icon"> |
|
|
|
<i className="fas fa-sign-out-alt"></i> |
|
|
|
<FontAwesomeIcon icon="sign-out-alt"/> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span>Clear polygons</span> |
|
|
|
<span>Clear polygons</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
@ -106,7 +107,7 @@ class Nav extends Component { |
|
|
|
<a className="button is-primary" |
|
|
|
<a className="button is-primary" |
|
|
|
onClick={() => logout()}> |
|
|
|
onClick={() => logout()}> |
|
|
|
<span className="icon"> |
|
|
|
<span className="icon"> |
|
|
|
<i className="fas fa-sign-out-alt"></i> |
|
|
|
<FontAwesomeIcon icon="sign-out-alt"/> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span>Logout</span> |
|
|
|
<span>Logout</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
@ -114,7 +115,7 @@ class Nav extends Component { |
|
|
|
{!loggedIn && |
|
|
|
{!loggedIn && |
|
|
|
<Link className="button is-primary" to='/login'> |
|
|
|
<Link className="button is-primary" to='/login'> |
|
|
|
<span className="icon"> |
|
|
|
<span className="icon"> |
|
|
|
<i className="fas fa-sign-in-alt"></i> |
|
|
|
<FontAwesomeIcon icon="sign-in-alt"/> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span>Sign in</span> |
|
|
|
<span>Sign in</span> |
|
|
|
</Link> |
|
|
|
</Link> |
|
|
|