Skip to content

Commit

Permalink
Project refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
clonalejandro committed Aug 11, 2020
1 parent 73b60e2 commit 6ee0607
Show file tree
Hide file tree
Showing 17 changed files with 804 additions and 24,701 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SKIP_PREFLIGHT_CHECK=true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

yarn.lock
package-lock*
23,932 changes: 0 additions & 23,932 deletions package-lock.json

This file was deleted.

25 changes: 13 additions & 12 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import React from 'react';
import { Switch, Route, BrowserRouter } from 'react-router-dom';
import Home from './pages/home';
import React from "react";
import { Switch, Route, BrowserRouter } from "react-router-dom";
import Home from "./pages/home";
import Components from "./pages/components";
import Documentation from "./pages/documentation";

export default () =>
<BrowserRouter>
<Switch>
<Route path={"/"} component={Home} exact />
<Route path={"/documentation/:component"} component={Components} />
<Route path={"/documentation"} component={Documentation} />
<Route component={Home}/>
</Switch>
</BrowserRouter>
export default () => (
<BrowserRouter>
<Switch>
<Route path={"/"} component={Home} exact />
<Route path={"/documentation/:component"} component={Components} />
<Route path={"/documentation"} component={Documentation} />
<Route component={Home} />
</Switch>
</BrowserRouter>
);
12 changes: 6 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import * as serviceWorker from './serviceWorker';
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import * as serviceWorker from './serviceWorker'

ReactDOM.render(<App />, document.querySelector("#root"));
ReactDOM.render(<App />, document.querySelector("#root"))

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister();
serviceWorker.unregister()
Loading

0 comments on commit 6ee0607

Please sign in to comment.