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
c508d0ec
Commit
c508d0ec
authored
4 years ago
by
Lucas Eduardo Schoenfelder
Browse files
Options
Downloads
Patches
Plain Diff
fixed links not working outside of homepage
parent
ec1a440b
No related branches found
No related tags found
3 merge requests
!57
Merge of develop into master
,
!56
Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...
,
!39
Update admin system
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Components/ResourcePageComponents/Sobre.js
+17
-4
17 additions, 4 deletions
src/Components/ResourcePageComponents/Sobre.js
with
17 additions
and
4 deletions
src/Components/ResourcePageComponents/Sobre.js
+
17
−
4
View file @
c508d0ec
...
@@ -22,6 +22,7 @@ import styled from 'styled-components'
...
@@ -22,6 +22,7 @@ import styled from 'styled-components'
import
Grid
from
'
@material-ui/core/Grid
'
;
import
Grid
from
'
@material-ui/core/Grid
'
;
import
{
Link
}
from
'
react-router-dom
'
import
{
Link
}
from
'
react-router-dom
'
import
{
NoIcon
}
from
'
../ContactButtons/FollowButton.js
'
import
{
NoIcon
}
from
'
../ContactButtons/FollowButton.js
'
import
{
NoIconFollowing
}
from
'
../ContactButtons/FollowingButton.js
'
import
Collapse
from
'
@material-ui/core/Collapse
'
;
import
Collapse
from
'
@material-ui/core/Collapse
'
;
import
SdCardIcon
from
'
@material-ui/icons/SdCard
'
;
import
SdCardIcon
from
'
@material-ui/icons/SdCard
'
;
import
TranslateIcon
from
'
@material-ui/icons/Translate
'
;
import
TranslateIcon
from
'
@material-ui/icons/Translate
'
;
...
@@ -136,6 +137,9 @@ export default function Sobre (props) {
...
@@ -136,6 +137,9 @@ export default function Sobre (props) {
let
windowWidth
=
window
.
innerWidth
let
windowWidth
=
window
.
innerWidth
const
[
followed
,
setFollowed
]
=
useState
(
props
.
followed
)
const
toggleFollowed
=
()
=>
{
setFollowed
(
!
followed
)}
return
(
return
(
<
Grid
container
style
=
{{
paddingRight
:
"
15px
"
,
paddingLeft
:
"
15px
"
}}
>
<
Grid
container
style
=
{{
paddingRight
:
"
15px
"
,
paddingLeft
:
"
15px
"
}}
>
...
@@ -198,10 +202,19 @@ export default function Sobre (props) {
...
@@ -198,10 +202,19 @@ export default function Sobre (props) {
<
div
style
=
{{
paddingTop
:
"
0.75em
"
,
display
:
"
flex
"
,
justifyContent
:
"
center
"
}}
>
<
div
style
=
{{
paddingTop
:
"
0.75em
"
,
display
:
"
flex
"
,
justifyContent
:
"
center
"
}}
>
{
{
(
props
.
id
!==
state
.
currentUser
.
id
)
&&
(
props
.
id
!==
state
.
currentUser
.
id
)
&&
followed
?
(
<>
<
NoIconFollowing
followableID
=
{
props
.
id
}
toggleFollowed
=
{
toggleFollowed
}
/
>
<
ContactCardOptions
followableID
=
{
props
.
id
}
/
>
<
/
>
)
:
(
<>
<>
<
NoIcon
followableID
=
{
props
.
id
}
/
>
<
NoIcon
followableID
=
{
props
.
id
}
toggleFollowed
=
{
toggleFollowed
}
/
>
<
ContactCardOptions
followableID
=
{
props
.
id
}
/
>
<
ContactCardOptions
followableID
=
{
props
.
id
}
/
>
<
/
>
<
/
>
)
}
}
<
/div
>
<
/div
>
<
/MetasObjeto
>
<
/MetasObjeto
>
...
...
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