-
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.
- Loading branch information
1 parent
71622bd
commit f49091c
Showing
4 changed files
with
83 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import BottomButtonPanel from '@/components/Common/BottomButtonPanel'; | ||
import Button from '@/components/Common/Button'; | ||
import BaseHeader from '@/components/Common/Header/BaseHeader'; | ||
import { usePostRequest } from '@/hooks/api/useDocument'; | ||
import { useState } from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
const RequestModifyPage = () => { | ||
const navigate = useNavigate(); | ||
const [reasonInput, setReasonInput] = useState(''); | ||
const { mutate: sendRequest } = usePostRequest(); | ||
return ( | ||
<div> | ||
<BaseHeader | ||
hasBackButton={true} | ||
hasMenuButton={true} | ||
title="Reason for Request" | ||
onClickBackButton={() => navigate('/application-documents')} | ||
/> | ||
<div className="w-full relative flex flex-col items-center justify-start text-left text-[#1e1926] head-1"> | ||
<div className="self-stretch flex items-center justify-start p-6"> | ||
Reason for Request | ||
</div> | ||
<div className="w-full self-stretch flex flex-col items-center justify-start pb-[10rem] px-6 body-3"> | ||
<div className="w-full flex flex-col items-start justify-start"> | ||
<div className="w-full flex flex-col items-center justify-start"> | ||
<textarea | ||
className="w-full h-[7.5rem] px-[1rem] py-[0.75rem] border border-[#E2E5EB] rounded-[0.75rem] body-2 outline-none resize-none" | ||
placeholder="Write a contract review" | ||
value={reasonInput} | ||
maxLength={100} | ||
onChange={(e) => setReasonInput(e.target.value)} | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<BottomButtonPanel> | ||
<Button | ||
type="large" | ||
isBorder={false} | ||
bgColor="bg-[#FEF387]" | ||
fontColor="text-[#1E1926]" | ||
title="Request" | ||
onClick={() => { | ||
sendRequest({ id: 1, reason: reasonInput }); | ||
}} | ||
/> | ||
</BottomButtonPanel> | ||
</div> | ||
); | ||
}; | ||
|
||
export default RequestModifyPage; |
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