From 30288f60e3a4254da223227cced3fb2bdaadeefa Mon Sep 17 00:00:00 2001 From: sipp11 Date: Wed, 17 Oct 2018 02:09:20 +0900 Subject: [PATCH] wip --- package.json | 2 +- src/components/FareAttributesForm.js | 1 - src/components/FareList.js | 2 +- src/components/Footer.js | 6 ++++-- src/components/StopForm.js | 1 - src/constants/Api.js | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 3f2d9c3..d9750d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "grunt-front", - "version": "0.2.0", + "version": "0.3.0", "private": true, "dependencies": { "ajv": "^6.5.1", diff --git a/src/components/FareAttributesForm.js b/src/components/FareAttributesForm.js index f695782..bf4307e 100644 --- a/src/components/FareAttributesForm.js +++ b/src/components/FareAttributesForm.js @@ -12,7 +12,6 @@ import store from '../store' import Input from './parts/Input' import OurSelect from './parts/Select' import AsyncSelect from 'react-select/lib/Async' -import { components } from 'react-select' import { PaymentMethodChoices, TransferChoices } from '../constants/choices' diff --git a/src/components/FareList.js b/src/components/FareList.js index 9ea1687..027b7c6 100644 --- a/src/components/FareList.js +++ b/src/components/FareList.js @@ -121,7 +121,7 @@ class FareList extends Component {

Route ID

- {farerule.results[i].route && farerule.results[i].route.route_id || '-'} + {farerule.results[i].route && (farerule.results[i].route.route_id || '-')}

diff --git a/src/components/Footer.js b/src/components/Footer.js index 3bae82d..c8a1f5e 100644 --- a/src/components/Footer.js +++ b/src/components/Footer.js @@ -1,13 +1,15 @@ import React from 'react' +import { version } from '../../package.json' const Footer = () => - export default Footer diff --git a/src/components/StopForm.js b/src/components/StopForm.js index f7d49f2..118c4de 100644 --- a/src/components/StopForm.js +++ b/src/components/StopForm.js @@ -3,7 +3,6 @@ import styled from 'styled-components' import { connect } from 'react-redux' import { Redirect, Link } from 'react-router-dom' import AsyncSelect from 'react-select/lib/Async' -import { components } from 'react-select' import Input from './parts/Input' import Select from './parts/Select' diff --git a/src/constants/Api.js b/src/constants/Api.js index a8ddabe..4c9787b 100644 --- a/src/constants/Api.js +++ b/src/constants/Api.js @@ -1,6 +1,6 @@ -export const URL = process.env.API_URL || '//localhost:8000' -// export const URL = process.env.API_URL || 'https://api.goth.app' +// export const URL = process.env.API_URL || '//localhost:8000' +export const URL = process.env.API_URL || 'https://api.goth.app' export const API_PREFIX = process.env.API_PREFIX || '/v1' export const API_URL = `${URL}${API_PREFIX}` export const LOGIN = '/api-token-auth/'