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