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
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
Merge requests
!16
Resolve "Criar tela de busca"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Criar tela de busca"
10-criar-tela-de-busca
into
Develop
Overview
0
Commits
8
Pipelines
0
Changes
8
Merged
mrp19
requested to merge
10-criar-tela-de-busca
into
Develop
5 years ago
Overview
0
Commits
8
Pipelines
0
Changes
8
Expand
Closes
#10 (closed)
Edited
4 years ago
by
mrp19
0
0
Merge request reports
Viewing commit
8acb7d28
Prev
Next
Show latest version
8 files
+
752
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
8acb7d28
Add arquivos para a página de pesquisa
· 8acb7d28
mrp19
authored
5 years ago
src/Components/SearchExpansionPanel/SearchEPCompCurriculum.js
0 → 100644
+
95
−
0
Options
import
React
from
"
react
"
;
import
{
makeStyles
}
from
"
@material-ui/core/styles
"
;
import
List
from
"
@material-ui/core/List
"
;
import
ListItem
from
"
@material-ui/core/ListItem
"
;
import
ListItemIcon
from
"
@material-ui/core/ListItemIcon
"
;
import
ListItemSecondaryAction
from
"
@material-ui/core/ListItemSecondaryAction
"
;
import
ListItemText
from
"
@material-ui/core/ListItemText
"
;
import
Checkbox
from
"
@material-ui/core/Checkbox
"
;
import
IconButton
from
"
@material-ui/core/IconButton
"
;
const
useStyles
=
makeStyles
(
theme
=>
({
root
:
{
width
:
"
100%
"
,
maxWidth
:
360
,
backgroundColor
:
theme
.
palette
.
background
.
paper
,
color
:
"
#666
"
}
}));
export
default
function
SearchEPCompCurriculum
()
{
const
classes
=
useStyles
();
const
[
checked
,
setChecked
]
=
React
.
useState
([
0
]);
const
handleToggle
=
value
=>
()
=>
{
const
currentIndex
=
checked
.
indexOf
(
value
);
const
newChecked
=
[...
checked
];
if
(
currentIndex
===
-
1
)
{
newChecked
.
push
(
value
);
}
else
{
newChecked
.
splice
(
currentIndex
,
1
);
}
setChecked
(
newChecked
);
};
const
filtrosComponente
=
[
{
exemplo
:
"
Arte
"
,
value
:
"
0
"
},
{
exemplo
:
"
Biologia
"
,
value
:
"
1
"
},
{
exemplo
:
"
Ciências da Natureza
"
,
value
:
"
2
"
},
{
exemplo
:
"
Direitos Humanos
"
,
value
:
"
3
"
},
{
exemplo
:
"
Educação Ambiental
"
,
value
:
"
4
"
},
{
exemplo
:
"
Educação do Campo
"
,
value
:
"
5
"
},
{
exemplo
:
"
Educação Especial
"
,
value
:
"
6
"
},
{
exemplo
:
"
Educação Física
"
,
value
:
"
7
"
},
{
exemplo
:
"
Educação Indígena
"
,
value
:
"
8
"
},
{
exemplo
:
"
Educação Quilombola
"
,
value
:
"
9
"
},
{
exemplo
:
"
Educação Sexual
"
,
value
:
"
10
"
},
{
exemplo
:
"
Ensino Religioso
"
,
value
:
"
11
"
},
{
exemplo
:
"
Filosofia
"
,
value
:
"
12
"
},
{
exemplo
:
"
Física
"
,
value
:
"
13
"
},
{
exemplo
:
"
Geografia
"
,
value
:
"
14
"
},
{
exemplo
:
"
História
"
,
value
:
"
15
"
},
{
exemplo
:
"
Informática
"
,
value
:
"
16
"
},
{
exemplo
:
"
Língua Espanhola
"
,
value
:
"
17
"
},
{
exemplo
:
"
Língua Inglesa
"
,
value
:
"
18
"
},
{
exemplo
:
"
Língua Portuguesa
"
,
value
:
"
19
"
},
{
exemplo
:
"
Matemática
"
,
value
:
"
20
"
},
{
exemplo
:
"
Outras Línguas
"
,
value
:
"
21
"
},
{
exemplo
:
"
Outros
"
,
value
:
"
22
"
},
{
exemplo
:
"
Química
"
,
value
:
"
23
"
},
{
exemplo
:
"
Sociologia
"
,
value
:
"
24
"
}
];
return
(
<
List
className
=
{
classes
.
root
}
>
{
filtrosComponente
.
map
(
item
=>
{
const
labelId
=
`checkbox-list-label-
${
item
.
value
}
`
;
return
(
<
ListItem
key
=
{
item
.
exemplo
}
role
=
{
undefined
}
dense
button
onClick
=
{
handleToggle
(
item
.
value
)}
>
<
ListItemIcon
>
<
Checkbox
edge
=
"
start
"
checked
=
{
checked
.
indexOf
(
item
.
value
)
!==
-
1
}
tabIndex
=
{
-
1
}
disableRipple
inputProps
=
{{
"
aria-labelledby
"
:
labelId
}}
/
>
<
/ListItemIcon
>
<
ListItemText
id
=
{
labelId
}
primary
=
{
item
.
exemplo
}
/
>
<
ListItemSecondaryAction
>
<
IconButton
edge
=
"
end
"
aria
-
label
=
"
comments
"
><
/IconButton
>
<
/ListItemSecondaryAction
>
<
/ListItem
>
);
})}
<
/List
>
);
}
Loading