-
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 #53 from teamViNO/feature-058
Feature 058
- Loading branch information
Showing
27 changed files
with
666 additions
and
122 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
26 changes: 26 additions & 0 deletions
26
src/components/ProfilePage/Account/ChangePassword/ChangePassword.tsx
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,26 @@ | ||
import useBoolean from '@/hooks/useBoolean'; | ||
|
||
import ChangePasswordModal from './ChangePasswordModal'; | ||
|
||
const ChangePassword = () => { | ||
const [isOpen, , open, close] = useBoolean(false); | ||
|
||
return ( | ||
<> | ||
<div | ||
className="account-group" | ||
style={{ flexDirection: 'row', justifyContent: 'space-between' }} | ||
> | ||
<span className="group-title">비밀번호</span> | ||
|
||
<button className="submit" onClick={open}> | ||
변경하기 | ||
</button> | ||
</div> | ||
|
||
{isOpen && <ChangePasswordModal onClose={close} />} | ||
</> | ||
); | ||
}; | ||
|
||
export default ChangePassword; |
11 changes: 11 additions & 0 deletions
11
src/components/ProfilePage/Account/ChangePassword/ChangePasswordModal.tsx
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,11 @@ | ||
import { Modal } from '@/components/common'; | ||
|
||
type Props = { | ||
onClose: () => void; | ||
}; | ||
|
||
const ChangePasswordModal = ({ onClose }: Props) => { | ||
return <Modal onClose={onClose}>asdf</Modal>; | ||
}; | ||
|
||
export default ChangePasswordModal; |
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 @@ | ||
export { default as ChangePassword } from './ChangePassword'; |
Oops, something went wrong.