email 자동 셋팅

This commit is contained in:
focp212@naver.com
2025-10-23 13:56:32 +09:00
parent fbc910caf9
commit d8ed11b4bf
10 changed files with 297 additions and 39 deletions

View File

@@ -51,7 +51,7 @@ export const BillingListPage = () => {
const [minAmount, setMinAmount] = useState<number>();
const [maxAmount, setMaxAmount] = useState<number>();
const [emailBottomSheetOn, setEmailBottomSheetOn] = useState<boolean>(false);
const [downloadBottomSheetOn, setDownloadBottomSheetOn] = useState<boolean>(false);
useSetHeaderTitle('빌링');
useSetHeaderType(HeaderType.LeftArrow);
@@ -102,8 +102,8 @@ export const BillingListPage = () => {
const onClickToOpenFilter = () => {
setFilterOn(!filterOn);
};
const onClickToDownloadExcel = () => {
setEmailBottomSheetOn(true);
const onClickToOpenDownloadBottomSheet = () => {
setDownloadBottomSheetOn(true);
};
const onClickToSort = (sort: SortTypeKeys) => {
setSortType(sort);
@@ -119,7 +119,7 @@ export const BillingListPage = () => {
});
};
const onRequestDownloadExcel = (userEmail?: string) => {
const onRequestDownload = (userEmail?: string) => {
};
@@ -161,7 +161,7 @@ export const BillingListPage = () => {
<img
src={ IMAGE_ROOT + '/ico_download.svg' }
alt="다운로드"
onClick={ () => onClickToDownloadExcel() }
onClick={ () => onClickToOpenDownloadBottomSheet() }
/>
</button>
</div>
@@ -217,13 +217,13 @@ export const BillingListPage = () => {
setMinAmount={ setMinAmount }
setMaxAmount={ setMaxAmount }
></BillingFilter>
{ !!emailBottomSheetOn &&
{ !!downloadBottomSheetOn &&
<EmailBottomSheet
bottomSheetOn={ emailBottomSheetOn }
setBottomSheetOn={ setEmailBottomSheetOn }
bottomSheetOn={ downloadBottomSheetOn }
setBottomSheetOn={ setDownloadBottomSheetOn }
imageSave={ false }
sendEmail={ true }
sendRequest={ onRequestDownloadExcel }
sendRequest={ onRequestDownload }
></EmailBottomSheet>
}
</>