Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-06-03 23:15:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f648e729595eab274514b9e31db5b84203536168
f648e729
1 parent
4d5284f4
add avatar prop condition
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
front/src/Components/ProfileIcon.js
front/src/Components/ProfileIcon.js
View file @
f648e72
...
...
@@ -15,6 +15,9 @@ const ProfileIcon = styled.img`
`
;
export
default
({
avatar
})
=>
{
if
(
avatar
===
""
)
{
avatar
=
"../imgs/defaultProfile.jpg"
;
}
return
(
<
ProfileIconBox
className
=
"ProfileIconBox"
>
<
ProfileIcon
src
=
{
avatar
}
/
>
...
...
Please
register
or
login
to post a comment