Skip to content

Commit 49d6bf7

Browse files
committed
updated directory structure
1 parent 90e8db1 commit 49d6bf7

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

website/src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import '@atlaskit/css-reset';
66
import Header from './components/Header';
77
import Home from './pages/home';
88
import PackageDoc from './pages/PackageDoc';
9-
import Repl from './pages/Repl';
9+
import Repl from './pages/repl';
1010

1111
const App = () => (
1212
<Router>

website/src/components/Header/index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ import { Link } from 'react-router-dom';
33
import './style.css';
44

55
export default ({ location }) => {
6-
const ifPathNameEqualTo = pathName => {
7-
console.log(location);
8-
return location && location.pathname === pathName;
9-
};
6+
const ifPathNameEqualTo = pathName => location && location.pathname === pathName;
107
return (
118
<nav>
12-
<h1>Extract React Types</h1>
9+
<Link to="/">
10+
<h1>Extract React Types</h1>
11+
</Link>
1312
<div className="header-controls">
1413
{/* <label>
1514
Type system:

website/src/pages/Repl.js renamed to website/src/pages/repl/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import CodeMirror from 'react-codemirror';
33
import 'codemirror/lib/codemirror.css';
44
import PrettyProps from 'pretty-proptypes';
55
import ert from 'extract-react-types';
6-
import './App.css';
7-
import * as uriUtils from './uriUtils';
6+
import './style.css';
7+
import * as uriUtils from './utils/uriUtils';
88

99
const STARTING_CODE = {
1010
code: `type ButtonPropType = {

website/src/pages/App.css renamed to website/src/pages/repl/style.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.container {
22
display: flex;
33
height: calc(100vh - 80px);
4+
overflow: scroll;
45
}
56

67
.container .block {
@@ -17,8 +18,6 @@
1718
height: 100%;
1819
}
1920

20-
21-
2221
.error-container {
2322
position: absolute;
2423
bottom: 0;

0 commit comments

Comments
 (0)