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-05-06 00:20:26 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
551cf452e011c35d5a29305e70c521a15e5f3620
551cf452
1 parent
fa06a1c9
create ImgIconBox.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
front/src/Components/SubMenuList/ImgIconBox.js
front/src/Components/SubMenuList/ImgIconBox.js
0 → 100644
View file @
551cf45
import
React
from
"react"
;
import
styled
from
"styled-components"
;
import
defaultProfile
from
"../../imgs/defaultProfile.jpg"
;
const
ImgIconBox
=
styled
.
div
`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
`
;
const
ImgIcon
=
styled
.
img
`
width: 50px;
border-radius: 20px;
src:
${(
props
)
=>
props
.
theme
.
defaultProfile
}
;
`
;
export
default
()
=>
{
return
(
<
ImgIconBox
>
<
ImgIcon
src
=
{
defaultProfile
}
/
>
<
/ImgIconBox
>
);
};
Please
register
or
login
to post a comment