This commit is contained in:
Rodrigo Pedroso 2019-06-22 21:57:18 -04:00
commit 5c7411594f
15 changed files with 5 additions and 64 deletions

View file

@ -1,33 +0,0 @@
.App {
text-align: center;
}
.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 40vmin;
pointer-events: none;
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

View file

@ -1,26 +0,0 @@
import React from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
}
export default App;

View file

@ -2,10 +2,10 @@ import React from 'react'
import ReactDOM from 'react-dom' import ReactDOM from 'react-dom'
// import './index.css' // import './index.css'
import { Provider } from 'react-redux' import { Provider } from 'react-redux'
import store from './js/store/index' import store from './store/index'
import App from './js/components/App.jsx' import App from './components/App.jsx'
import * as serviceWorker from './serviceWorker' import * as serviceWorker from './serviceWorker'
import { addArticle } from "./js/actions/index" import { addArticle } from "./actions/index"
window.store = store window.store = store
window.addArticle = addArticle window.addArticle = addArticle

View file

@ -1,9 +1,9 @@
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import App from './App'; import App from '../../components/App';
it('renders without crashing', () => { it('renders without crashing', () => {
const div = document.createElement('div'); const div = document.createElement('div');
ReactDOM.render(<App />, div); ReactDOM.render(<App />, div);
ReactDOM.unmountComponentAtNode(div); ReactDOM.unmountComponentAtNode(div);
}); })