Skip to content

Commit

Permalink
import refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
chasebish committed Aug 6, 2018
1 parent aa7abd7 commit 6b0651f
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { combineReducers, createStore } from 'redux'
import { Provider } from 'react-redux'
import { ArtistReducer, TrackReducer } from './reducers'

import RootComponent from './components/RootComponent'
import { RootComponent } from './components'

const rootReducer = combineReducers({
ArtistReducer,
Expand Down
5 changes: 2 additions & 3 deletions src/components/RootComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import React from 'react'
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import { Container } from 'reactstrap'

import Home from '../containers/Home'

import Navbar from './Navbar'
import { Home } from '../containers'
import { Navbar } from '.'

const RootComponent = () => (
<BrowserRouter>
Expand Down
4 changes: 4 additions & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export { default as ArtistListItem } from './ArtistListItem'
export { default as Navbar } from './Navbar'
export { default as RootComponent } from './RootComponent'
export { default as TrackListItem } from './TrackListItem'
2 changes: 1 addition & 1 deletion src/containers/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Col, Row } from 'reactstrap'
import TopArtists from './TopArtists'
import TopTracks from './TopTracks'

import MusicService from '../services/MusicService'
import { MusicService } from '../services'

class HomeComponent extends React.Component {

Expand Down
2 changes: 1 addition & 1 deletion src/containers/TopArtists.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { ListGroup, ListGroupItem } from 'reactstrap'

import ArtistListItem from '../components/ArtistListItem'
import { ArtistListItem } from '../components'

const TopArtistsComponent = ({ topArtists }) => (
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/TopTracks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { ListGroup, ListGroupItem } from 'reactstrap'

import TrackListItem from '../components/TrackListItem'
import { TrackListItem } from '../components'

const TopTracksComponent = ({ topTracks }) => (
<div>
Expand Down
3 changes: 3 additions & 0 deletions src/containers/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { default as Home } from './Home'
export { default as TopArtists } from './TopArtists'
export { default as TopTracks } from './TopTracks'
1 change: 1 addition & 0 deletions src/services/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as MusicService } from './MusicService'

0 comments on commit 6b0651f

Please sign in to comment.