-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
|
||
const Login = () => { | ||
return <div> | ||
const Container = styled.div`` | ||
|
||
const Login = props => { | ||
return <Container> | ||
login | ||
</div> | ||
</Container> | ||
} | ||
|
||
export default Login |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
import Modal from 'react-modal' | ||
|
||
const Container = styled.div` | ||
position: relative; | ||
` | ||
|
||
const CloseIcon = styled.div` | ||
position: absolute; | ||
top: 0.5rem; | ||
right: 0; | ||
:before { | ||
content: 'x'; | ||
color: #000; | ||
font-weight: 800; | ||
font-size: 2.5rem; | ||
line-height: 1px; | ||
} | ||
` | ||
|
||
const MyModal = props => { | ||
const { isOpen, handleCloseModal, children } = props | ||
|
||
return <Modal isOpen={isOpen}> | ||
<Container> | ||
<CloseIcon onClick={handleCloseModal} /> | ||
{children} | ||
</Container> | ||
</Modal> | ||
} | ||
|
||
export default MyModal |