Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PortalMEC-React
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PortalMEC
PortalMEC-React
Commits
5264698d
Commit
5264698d
authored
4 years ago
by
lfr20
Browse files
Options
Downloads
Patches
Plain Diff
Improved the Drawer
parent
6e91ab19
No related branches found
No related tags found
4 merge requests
!57
Merge of develop into master
,
!56
Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...
,
!40
merge admin into develop
,
!37
Merge sistema_admin into Update_Admin_System
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Admin/Pages/Pages/Admin.js
+9
-11
9 additions, 11 deletions
src/Admin/Pages/Pages/Admin.js
with
9 additions
and
11 deletions
src/Admin/Pages/Pages/Admin.js
+
9
−
11
View file @
5264698d
...
@@ -56,7 +56,7 @@ export default function Admin() {
...
@@ -56,7 +56,7 @@ export default function Admin() {
});
});
const
[
IndexIcon
,
setIndexIcon
]
=
useState
(
0
);
const
[
IndexIcon
,
setIndexIcon
]
=
useState
(
0
);
{
/**************** Controlls the state of the Drawer ****************/
}
{
/**************** Controlls the state of the Drawer ****************/
}
const
toggleDrawer
=
(
anchor
,
open
)
=>
(
event
)
=>
{
const
toggleDrawer
=
(
anchor
,
open
)
=>
(
event
)
=>
{
if
(
event
.
type
===
'
keydown
'
&&
(
event
.
key
===
'
Tab
'
||
event
.
key
===
'
Shift
'
))
{
if
(
event
.
type
===
'
keydown
'
&&
(
event
.
key
===
'
Tab
'
||
event
.
key
===
'
Shift
'
))
{
return
;
return
;
...
@@ -65,7 +65,7 @@ export default function Admin() {
...
@@ -65,7 +65,7 @@ export default function Admin() {
setState
({
...
state
,
[
anchor
]:
open
});
setState
({
...
state
,
[
anchor
]:
open
});
};
};
{
/**************** Dsiplay the itens of the Drawer ****************/
}
{
/**************** Dsiplay the itens of the Drawer ****************/
}
const
list
=
(
anchor
)
=>
(
const
list
=
(
anchor
)
=>
(
<
div
<
div
className
=
{
clsx
(
classes
.
list
,
{
className
=
{
clsx
(
classes
.
list
,
{
...
@@ -91,21 +91,19 @@ export default function Admin() {
...
@@ -91,21 +91,19 @@ export default function Admin() {
return
(
return
(
<
div
>
<
div
>
{
/**************** Begin of the Drawer ****************/
}
{
/**************** Begin of the Drawer ****************/
}
{[
'
left
'
].
map
((
anchor
)
=>
(
<
React
.
Fragment
>
<
React
.
Fragment
key
=
{
anchor
}
>
<
Drawer
anchor
=
{
'
left
'
}
open
=
{
state
[
'
left
'
]}
onClose
=
{
toggleDrawer
(
'
left
'
,
false
)}
>
<
Drawer
anchor
=
{
anchor
}
open
=
{
state
[
anchor
]}
onClose
=
{
toggleDrawer
(
anchor
,
false
)}
>
{
list
(
'
left
'
)}
{
list
(
anchor
)}
<
/Drawer
>
<
/Drawer
>
<
/React.Fragment
>
<
/React.Fragment
>
{
/**************** End of the Drawer****************/
}
))}
{
/**************** End of the Drawer****************/
}
{
/**************** Begin of the Content ****************/
}
{
/**************** Begin of the Content ****************/
}
<
div
style
=
{{
paddingTop
:
'
2em
'
,
paddingLeft
:
'
2em
'
,
paddingRight
:
'
2em
'
,
paddingBottom
:
'
2em
'
,
backgroundColor
:
'
#D3D3D3
'
}}
>
<
div
style
=
{{
paddingTop
:
'
2em
'
,
paddingLeft
:
'
2em
'
,
paddingRight
:
'
2em
'
,
paddingBottom
:
'
2em
'
,
backgroundColor
:
'
#D3D3D3
'
}}
>
<
DisplayContent
selectedIcon
=
{
IndexIcon
}
/
>
<
DisplayContent
selectedIcon
=
{
IndexIcon
}
/
>
<
/div
>
<
/div
>
{
/**************** End of the Content ****************/
}
{
/**************** End of the Content ****************/
}
{
/**************** FLoating action Button ****************/
}
{
/**************** FLoating action Button ****************/
}
<
Fab
color
=
"
primary
"
aria
-
label
=
"
add
"
style
=
{
fab
}
onClick
=
{
toggleDrawer
(
'
left
'
,
true
)}
>
<
Fab
color
=
"
primary
"
aria
-
label
=
"
add
"
style
=
{
fab
}
onClick
=
{
toggleDrawer
(
'
left
'
,
true
)}
>
<
MenuIcon
/>
<
MenuIcon
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment