-
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.
Merge pull request #205 from woowa-techcamp-2021/dev
v1.1.0
- Loading branch information
Showing
95 changed files
with
1,295 additions
and
839 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
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
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,48 @@ | ||
import styled from 'lib/woowahan-components'; | ||
import React, { FC } from 'react'; | ||
import DaumPostcode from 'react-daum-postcode'; | ||
|
||
interface IAddressData { | ||
roadAddress: string; | ||
} | ||
|
||
interface AddressModalProps { | ||
handleComplete: (data: IAddressData) => void; | ||
setModal: React.Dispatch<React.SetStateAction<boolean>>; | ||
} | ||
const Modal = styled.div` | ||
position: fixed; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0, 0, 0, 0.3); | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
z-index: 10; | ||
`; | ||
|
||
const ModalInner = styled.div` | ||
width: 80%; | ||
max-width: 600px; | ||
#__daum__layer_1 { | ||
border-radius: 10px; | ||
} | ||
`; | ||
|
||
const AddressModal: FC<AddressModalProps> = ({ handleComplete, setModal }) => { | ||
const modalClickHandler = (e: Event) => { | ||
if (e.target === e.currentTarget) setModal(false); | ||
}; | ||
return ( | ||
<Modal onClick={modalClickHandler}> | ||
<ModalInner> | ||
<DaumPostcode onComplete={handleComplete} animation /> | ||
</ModalInner> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default AddressModal; |
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
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
Oops, something went wrong.