Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
1ed64308
Commit
1ed64308
authored
Aug 05, 2020
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apdet
parent
fa7ea43b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
Home.js
src/container/Home.js
+8
-16
No files found.
src/container/Home.js
View file @
1ed64308
...
...
@@ -163,7 +163,7 @@ export default function MiniDrawer() {
<
List
>
{[
'All mail'
,
'Trash'
,
'Spam'
].
map
((
text
,
index
)
=>
(
<
ListItem
button
key
=
{
text
}
>
<
ListItemIcon
>
{
index
%
2
===
0
?
<
InboxIcon
/>
:
<
MailIcon
/
>
}
<
/ListItemIcon
>
<
ListItemIcon
>
{
index
%
2
===
0
?
<
Link
to
=
{
`
${
url
}
/rendering`
}
><
InboxIcon
/><
/Link> : <Link to={`${url}/
components
`}><MailIcon /></Link
>}</ListItemIcon>
<ListItemText primary={text} />
</ListItem>
))}
...
...
@@ -171,19 +171,6 @@ export default function MiniDrawer() {
</Drawer>
<main className={classes.content}>
<div className={classes.toolbar} />
<
h2
>
Topics
<
/h2
>
<
ul
>
<
li
>
<
Link
to
=
{
`
${
url
}
/rendering`
}
>
Rendering
with
React
<
/Link
>
<
/li
>
<
li
>
<
Link
to
=
{
`
${
url
}
/components`
}
>
Components
<
/Link
>
<
/li
>
<
li
>
<
Link
to
=
{
`
${
url
}
/props-v-state`
}
>
Props
v
.
State
<
/Link
>
<
/li
>
<
/ul
>
<Switch>
<Route exact path={path}>
<h3>Please select a topic.</h3>
...
...
@@ -192,6 +179,9 @@ export default function MiniDrawer() {
<
Topic
/>
<
/Route
>
<
/Switch
>
<
div
style
=
{{
height
:
100
,
width
:
'100%'
,
backgroundColor
:
'red'
,
justifyContent
:
'flex-end'
}}
>
<
/div
>
<
/main
>
<
/div
>
);
...
...
@@ -203,7 +193,9 @@ function Topic() {
// of the URL indicates a placeholder that we can
// get from `useParams()`.
let
{
topicId
}
=
useParams
();
React
.
useEffect
(()
=>
{
alert
(
topicId
)
})
return
(
<
div
>
<
h3
>
{
topicId
}
<
/h3
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment