Skip to content

Commit 7c570a1

Browse files
committed
removed trailing spaces
1 parent f66af34 commit 7c570a1

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

router-app-v1.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import {
1313

1414

1515
const Home = () => (
16-
<div>
17-
<h2>TKTL notes app</h2>
18-
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
16+
<div>
17+
<h2>TKTL notes app</h2>
18+
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
1919
</div>
2020
)
2121

router-app-v2.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import {
1414

1515

1616
const Home = () => (
17-
<div>
18-
<h2>TKTL notes app</h2>
19-
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
17+
<div>
18+
<h2>TKTL notes app</h2>
19+
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
2020
</div>
2121
)
2222

@@ -102,11 +102,11 @@ const App = () => {
102102
}
103103
])
104104

105-
const [user, setUser] = useState(null)
105+
const [user, setUser] = useState(null)
106106

107107
const match = useMatch('/notes/:id')
108108

109-
const note = match
109+
const note = match
110110
? notes.find(note => note.id === Number(match.params.id))
111111
: null
112112

@@ -131,12 +131,12 @@ const App = () => {
131131
}
132132
</div>
133133
<Routes>
134-
<Route path="/notes/:id" element={<Note note={note} />} />
135-
<Route path="/notes" element={<Notes notes={notes} />} />
134+
<Route path="/notes/:id" element={<Note note={note} />} />
135+
<Route path="/notes" element={<Notes notes={notes} />} />
136136
<Route path="/users" element={user ? <Users /> : <Navigate replace to="/login" />} />
137137
<Route path="/login" element={<Login onLogin={login} />} />
138-
<Route path="/" element={<Home />} />
139-
</Routes>
138+
<Route path="/" element={<Home />} />
139+
</Routes>
140140
<div>
141141
<br />
142142
<em>Note app, Department of Computer Science 2022</em>

0 commit comments

Comments
 (0)