Skip to content

Commit

Permalink
🔨 Better Component Directory Structure
Browse files Browse the repository at this point in the history
  • Loading branch information
reuben committed Dec 19, 2016
1 parent 13fcdb4 commit e7e4623
Show file tree
Hide file tree
Showing 39 changed files with 21 additions and 21 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion front/components/FeatureInfoContainer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {connect} from 'react-redux'

import selectFeatureAction from '../../store/actions/selectFeature'

import FeatureInfo from '../FeatureInfo'
import FeatureInfo from './FeatureInfo'

const mapStateToProps = ({map: {selected: {selectedFeature, editingFeature}}, aesthetics: {activityTypes, locationCategories}}) => ({feature: selectedFeature, editing: selectedFeature &&editingFeature && editingFeature.id === selectedFeature.id, activityTypes, locationCategories})
const mapDispatchToProps = {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion front/components/LogInOutContainer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {replace} from 'react-router-redux'

import logoutAction from '../../store/actions/logout'

import LogInOut from '../LogInOut'
import LogInOut from './LogInOut'

const mapStateToProps = ({user: {loggedIn}}) => ({loggedIn})
const mapDispatchToProps = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import {login, banner} from './style'

import Message from '../Message'
import Message from '../../Message'

export default class Login extends React.Component {
constructor(props){
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion front/components/LoginContainer/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {connect} from 'react-redux'
import Login from '../Login'
import Login from './Login'
import loginFormValidateAction from '../../store/actions/loginFormValidate'

const mapStateToProps = ({user: {id}, loginForm: {valid, errors, loading, redirect}}) => ({signedIn: !!id, valid, errors, loading, redirect})
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion front/components/LogoContainer/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {connect} from 'react-redux'
import Logo from '../Logo'
import Logo from './Logo'

const mapStateToProps = ({user: {birthday, loggedIn}}) => ({birthday: birthday.isSame(new Date(), 'd') && loggedIn})

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import {Marker} from 'react-leaflet'

import mapIcon from '../mapIcon'
import FeaturePopup from '../FeaturePopup'
import mapIcon from '../../mapIcon'
import FeaturePopup from '../../FeaturePopup'

const LocationIcon = ({locationCategories, iconImageSize, displayFeature, selected, selectFeature}) => (
<Marker
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {connect} from 'react-redux'

import selectFeatureAction from '../../../store/actions/selectFeature'
import selectFeatureAction from '../../../../store/actions/selectFeature'

import LocationIcon from '../LocationIcon'
import LocationIcon from './LocationIcon'

const mapStateToProps = ({aesthetics: {locationCategories, iconImageSize}}) => ({locationCategories, iconImageSize})
const mapDispatchToProps = {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import FeaturePopup from '../FeaturePopup'
import FeaturePopup from '../../FeaturePopup'
import GradientPolyline from './GradientPolyline'
import EditLine from './EditLine'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {connect} from 'react-redux'

import selectFeatureAction from '../../../store/actions/selectFeature'
import selectFeatureAction from '../../../../store/actions/selectFeature'

import MoveLine from '../MoveLine'
import MoveLine from './MoveLine'

const mapStateToProps = ({aesthetics: {activityTypes}}) => ({activityTypes})
const mapDispatchToProps = {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import {Map as LeafletMap} from 'react-leaflet'
import {} from 'leaflet-editable'
import mapIcon from './mapIcon'

import KeyCombo from '../KeyCombo'
import MapNav from '../MapNav'
import FeatureInfoContainer from '../FeatureInfoContainer'
import KeyCombo from '../../KeyCombo'
import MapNav from '../../MapNav'
import FeatureInfoContainer from '../../FeatureInfoContainer'

import MapboxGlLayer from './MapboxGlLayer'

import Loader from '../Loader'
import Loader from '../../Loader'
import MoveLineContainer from './MoveLineContainer'
import LocationIconContainer from './LocationIconContainer'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import moment from 'moment'

import Range from '../../models/Range'
import Range from '../../../models/Range'

export default ({params: {from, to, feature}, location: {action}, selectRange, selectFeature}) => {
if(!from && !to) return selectRange(new Range({start: moment().subtract(1, 'd')}))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion front/components/MapContainer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import selectFeatureAction from '../../store/actions/selectFeature'
import goYesterdayAction from '../../store/actions/goYesterday'
import goTomorrowAction from '../../store/actions/goTomorrow'

import Map from '../Map'
import Map from './Map'

const mapStateToProps = ({map: {selected, loading}, user: {homeLocation}}) => ({loading, selected, homeLocation})
const mapDispatchToProps = {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import moment from 'moment'

import './react-datepicker.css'

import Range from '../../models/Range'
import Range from '../../../models/Range'

import {rangeSelector, arrow, slash} from './style'
import StartDate from './StartDate.js'
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion front/components/RangeSelectorContainer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import selectRangeAction from '../../store/actions/selectRange'
import goYesterdayAction from '../../store/actions/goYesterday'
import goTomorrowAction from '../../store/actions/goTomorrow'

import RangeSelector from '../RangeSelector'
import RangeSelector from './RangeSelector'

const mapStateToProps = ({map: {selected: {range}}, user: {accountStartDay}}) => ({range, accountStartDay})
const mapDispatchToProps = {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion front/components/UpdateButtonContainer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {connect} from 'react-redux'

import updateRangeAction from '../../store/actions/updateRange'

import UpdateButton from '../UpdateButton'
import UpdateButton from './UpdateButton'

const mapStateToProps = ({map: {selected: {range}, updating}}) => ({range, updating})
const mapDispatchToProps = {
Expand Down

0 comments on commit e7e4623

Please sign in to comment.