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
Commits
fbac86d9
Commit
fbac86d9
authored
4 years ago
by
lfr20
Browse files
Options
Downloads
Patches
Plain Diff
Removed the map function
parent
fd72800e
No related branches found
No related tags found
6 merge requests
!57
Merge of develop into master
,
!56
Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...
,
!39
Update admin system
,
!32
Homologa
,
!31
Fix console error
,
!28
Training materials
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Components/ExpandedMaterials.js
+25
-17
25 additions, 17 deletions
src/Components/ExpandedMaterials.js
with
25 additions
and
17 deletions
src/Components/ExpandedMaterials.js
+
25
−
17
View file @
fbac86d9
...
...
@@ -7,6 +7,7 @@ import Button from '@material-ui/core/Button';
import
ExpandedMaterialCard
from
'
./ExpandedMaterialCard
'
;
import
Paper
from
'
@material-ui/core/Paper
'
;
import
Library
from
'
@material-ui/icons/LibraryBooks
'
;
import
{
Link
}
from
'
react-router-dom
'
;
const
useStyles
=
makeStyles
((
theme
)
=>
({
root
:
{
...
...
@@ -53,9 +54,11 @@ const ExpandedMaterial = (props) => {
}
<
/DevelopedByDiv
>
<
SizedHeightBox3
/>
<
Button
variant
=
"
contained
"
color
=
"
secondary
"
>
Ver
todos
<
/Button
>
<
StyledLink
to
=
{
`/colecao?colecao=
${
material
.
id
}
`
}
>
<
Button
variant
=
"
contained
"
color
=
"
secondary
"
>
Ver
todos
<
/Button
>
<
/StyledLink
>
<
/Grid
>
<
/Grid
>
<
Grid
item
direction
=
"
column
"
xs
=
{
8
}
>
...
...
@@ -68,24 +71,24 @@ const ExpandedMaterial = (props) => {
<
/Grid
>
<
SizedHeightBox
/>
<
Grid
container
direction
=
"
row
"
spacing
=
{
3
}
>
{
/* <Grid item md={3}>
<
Grid
item
md
=
{
4
}
>
<
ExpandedMaterialCard
name
=
{
material
.
topics
[
0
].
pre_title
+
material
.
topics
[
0
].
title
}
thumb
=
{
material
.
topics
[
0
].
img
}
/
>
<
/Grid
>
<
Grid
item
md
=
{
4
}
>
<
ExpandedMaterialCard
name
=
{
material
.
topics
[
1
].
pre_title
+
material
.
topics
[
1
].
title
}
thumb
=
{
material
.
topics
[
1
].
img
}
/
>
</Grid> */
}
{
material
.
topics
.
map
((
material
,
index
)
=>
{
return
(
<
Grid
item
key
=
{
index
}
md
=
{
4
}
>
<
ExpandedMaterialCard
name
=
{
material
.
pre_title
+
material
.
title
}
thumb
=
{
material
.
img
}
/
>
<
/Grid
>
)
})
}
<
/Grid
>
<
Grid
item
md
=
{
4
}
>
<
ExpandedMaterialCard
name
=
{
material
.
topics
[
2
].
pre_title
+
material
.
topics
[
2
].
title
}
thumb
=
{
material
.
topics
[
2
].
img
}
/
>
<
/Grid
>
<
/Grid
>
<
/Grid
>
<
/Grid
>
...
...
@@ -117,5 +120,10 @@ const SizedHeightBox3 = styled.div`
const
SizedWidthBox
=
styled
.
div
`
width : 5px;
`
const
StyledLink
=
styled
(
Link
)
`
text-decoration: none !important;
color: inherit !important;
`
export
default
ExpandedMaterial
;
\ No newline at end of file
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