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-01 05:21:13 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
68abd83c5f08e85fd10674b1b456141df636a1f3
68abd83c
1 parent
c8a3cac4
update ProfileIcon component
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
front/src/Components/ProfileIcon.js
front/src/Components/ProfileIcon.js
View file @
68abd83
import
React
from
"react"
;
import
styled
from
"styled-components"
;
import
defaultProfile
from
"../imgs/defaultProfile.jpg"
;
const
ProfileIconBox
=
styled
.
div
`
display: flex;
...
...
@@ -15,10 +14,10 @@ const ProfileIcon = styled.img`
src:
${(
props
)
=>
props
.
theme
.
defaultProfile
}
;
`
;
export
default
()
=>
{
export
default
(
{
avatar
}
)
=>
{
return
(
<
ProfileIconBox
>
<
ProfileIcon
src
=
{
defaultProfile
}
/
>
<
ProfileIconBox
className
=
"ProfileIconBox"
>
<
ProfileIcon
src
=
{
avatar
}
/
>
<
/ProfileIconBox
>
);
};
...
...
Please
register
or
login
to post a comment