Skip to content

Commit

Permalink
moved components to new folders
Browse files Browse the repository at this point in the history
  • Loading branch information
mrt123 committed Sep 10, 2017
1 parent dc8bc6c commit a762f4c
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/App/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import {
import styled from 'styled-components';
import NavBarContainer from './NavBarContainer';

import Search from '../routes/search/Search';
import CardsContainer from '../routes/cards/CardsContainer';
import Search from '../routes/Search';
import CardsContainer from '../routes/CardsContainer';
import MyWordsContainer from '../routes/MyWordsContainer';
import WordContainer from '../common/WordContainer';
import WordContainer from '../common/word/WordContainer';
import Logout from '../routes/LogOut';
import Login from '../routes/Login';
import SetLogged from '../routes/SetLogged';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/cards/Card.js → src/common/Card.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import styled from 'styled-components'
import WordContainer from './../../common/WordContainer.js'
import WordContainer from './word/WordContainer.js'

const Perspective = styled.div`
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions src/routes/cards/Cards.js → src/common/Cards.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import {RouteWrapper, BigSpinner} from '../../common/routeComponents';
import {RouteWrapper, BigSpinner} from './routeComponents';
import Card from './Card'
import Button1 from '../../common/buttons/Button1.js'
import Button1 from './buttons/Button1.js'
import styled from 'styled-components'

const Footer = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion src/routes/search/SearchBar.js → src/common/SearchBar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import createHistory from 'history/createBrowserHistory'
import createHistory from '../../node_modules/history/createBrowserHistory'
const history = createHistory();

const Wrapper = styled.div`
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/common/Word.js → src/common/word/Word.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import styled from 'styled-components';
import {BigSpinner} from '../common/routeComponents';
import {BigSpinner} from '../routeComponents';
import LexicalEntries from './LexicalEntries';
import FavoriteContainer from './FavoriteContainer.js';
import FavoriteContainer from './../FavoriteContainer.js';

const WordWrapper = styled.div`
margin: 30px 10px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import * as api from './../api/api';
import * as api from './../../api/api';
import Word from './Word';

class WordContainer extends Component {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import * as api from './../../api/api'
import Cards from './Cards'
import * as api from './../api/api'
import Cards from './../common/Cards'

export default class extends React.Component { // TODO: remove duplication with myWordsContainer.
constructor() {
Expand Down
6 changes: 3 additions & 3 deletions src/routes/search/Search.js → src/routes/Search.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {Component} from 'react';
import {RouteWrapper} from '../../common/routeComponents';
import SearchBar from './SearchBar';
import WordContainer from './../../common/WordContainer';
import {RouteWrapper} from '../common/routeComponents';
import SearchBar from './../common/SearchBar';
import WordContainer from './../common/word/WordContainer';

export default class Home extends Component {

Expand Down

0 comments on commit a762f4c

Please sign in to comment.