-
Notifications
You must be signed in to change notification settings - Fork 2
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 #32 from Team-inglo/feat/IGW-27/28
Feat/IGW-27/28 - 마이페이지, 언어설정 페이지 작업
- Loading branch information
Showing
30 changed files
with
1,048 additions
and
32 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,51 @@ | ||
import { ApplicationCountType, BookmarkCountType } from '@/types/api/profile'; | ||
import { useEffect, useState } from 'react'; | ||
|
||
const ApplicationStatus = () => { | ||
const [applicationCounts, setApplicationCounts] = | ||
useState<ApplicationCountType>({ | ||
application_counts: 7, | ||
successful_hire_counts: 2, | ||
}); | ||
const [bookmarkCounts, setBookmarkCounts] = useState<BookmarkCountType>({ | ||
book_mark_counts: 10, | ||
}); | ||
|
||
useEffect(() => { | ||
// TODO : API 로직 추가 | ||
setApplicationCounts({ | ||
application_counts: 7, | ||
successful_hire_counts: 2, | ||
}); | ||
setBookmarkCounts({ | ||
book_mark_counts: 10, | ||
}); | ||
}, []); | ||
|
||
return ( | ||
<div className="flex gap-4 items-center justify-center"> | ||
<div className="flex flex-col gap-3 w-24 py-2 px-1"> | ||
<div className="body-3 text-[#1E1926] text-center">Applications</div> | ||
<div className="head-3 text-[#1E1926] text-center"> | ||
{applicationCounts.application_counts} | ||
</div> | ||
</div> | ||
<div className="flex flex-col gap-3 py-2 px-1"> | ||
<div className="body-3 text-[#1E1926] text-center"> | ||
Successful Hires | ||
</div> | ||
<div className="head-3 text-[#1E1926] text-center"> | ||
{applicationCounts.successful_hire_counts} | ||
</div> | ||
</div> | ||
<div className="flex flex-col gap-3 w-24 py-2 px-1"> | ||
<div className="body-3 text-[#1E1926] text-center">Scraps</div> | ||
<div className="head-3 text-[#1E1926] text-center"> | ||
{bookmarkCounts.book_mark_counts} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ApplicationStatus; |
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,20 @@ | ||
type DeleteAccountProps = { | ||
onDeleteButton: (value: boolean) => void; | ||
}; | ||
|
||
const DeleteAccount = ({ onDeleteButton }: DeleteAccountProps) => { | ||
return ( | ||
<> | ||
<div className="pt-3 px-6 pb-[3.125rem] flex justify-center items-center"> | ||
<button | ||
className="bg-[#FF6F61] p-4 flex justify-center items-center rounded-[2rem] button-1 text-white" | ||
onClick={() => onDeleteButton(true)} | ||
> | ||
Delete account | ||
</button> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default DeleteAccount; |
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,41 @@ | ||
type DeleteModalProps = { | ||
onDeleteButton: (value: boolean) => void; | ||
onAccountDelete: () => void; | ||
}; | ||
|
||
const DeleteModal = ({ onDeleteButton, onAccountDelete }: DeleteModalProps) => { | ||
return ( | ||
<div className="w-[100vw] h-[100vh] fixed top-0 left-0 flex items-center justify-center bg-[rgba(70,70,70,0.6)] z-50"> | ||
<div className="w-[90%] max-w-[22rem] flex flex-col gap-8 bg-white rounded-[1.125rem] overflow-hidden"> | ||
<div> | ||
<h1 className="pt-[1.125rem] pb-4 border-b-[0.5px] border-solid border-[#DCDCDC] text-center head-3 text-[#464646]"> | ||
Do you want me to delete the account? | ||
</h1> | ||
<p className="pt-7 body-3 text-[#656565] text-center"> | ||
If you delete your account, you will not be able to | ||
<br /> | ||
recover it again. | ||
<br /> | ||
Do you still want to delete it? | ||
</p> | ||
</div> | ||
<div className="flex items-center justify-center"> | ||
<button | ||
className="bg=[#F4F4F9] py-[1.125rem] w-[50%] flex justify-center items-center button-1 text-[#656565]" | ||
onClick={() => onDeleteButton(false)} | ||
> | ||
Cancel | ||
</button> | ||
<button | ||
className="bg-[#FEF387] py-[1.125rem] w-[50%] flex justify-center items-center button-1 text-[#1E1926]" | ||
onClick={onAccountDelete} | ||
> | ||
Delete | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default DeleteModal; |
Oops, something went wrong.