Skip to content

Commit d24c118

Browse files
committed
refactoring
1 parent 421c970 commit d24c118

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

src/App.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import React from 'react';
22
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
33

44
import AccordionScreen from './components/accordion';
5-
import Screen from './components/form-library';
5+
import FormLibraryScreen from './components/form-library';
66
import WindowWidthScreen from './components/window-width';
7-
import TodoList from "./components/todo-list";
7+
import TodoList from './components/todo-list';
8+
import SortableScreen from "./components/sortable";
89

910
function App() {
1011
return (
@@ -38,14 +39,20 @@ function App() {
3839
</Link>
3940
<span>Look mum, <pre>useReducer</pre> is almost Redux!</span>
4041
</div>
42+
<div className="item">
43+
<Link className="link" to="/sortable">
44+
Sortable
45+
</Link>
46+
</div>
4147
</nav>
4248

4349
<div className="content">
4450
<Route path="/" exact component={() => <div>use navigation on the left</div>}/>
4551
<Route path="/accordion" component={AccordionScreen}/>
46-
<Route path="/form-library" component={Screen}/>
52+
<Route path="/form-library" component={FormLibraryScreen}/>
4753
<Route path="/window-width" component={WindowWidthScreen}/>
4854
<Route path="/todo-list" component={TodoList}/>
55+
<Route path="/sortable" component={SortableScreen}/>
4956
</div>
5057
</div>
5158
</Router>

src/components/form-library/FormLibrary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useEffect, createContext } from "react";
1+
import React, { useState, createContext } from "react";
22

33
const FormContext = createContext(null);
44

src/index.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
@import "../node_modules/normalize.css/normalize.css";
22

3+
body {
4+
font-family: "Helvetica Neue", sans-serif;
5+
}
6+
37
* {
48
box-sizing: border-box;
59
}
@@ -8,7 +12,6 @@
812
min-height: 100vh;
913
display: flex;
1014
align-items: stretch;
11-
font-family: "Helvetica Neue", sans-serif;
1215
}
1316

1417
.link {

0 commit comments

Comments
 (0)