bottomsheet issu 수정

This commit is contained in:
focp212@naver.com
2025-11-24 11:24:48 +09:00
parent f17c8c8875
commit 53d67fcb13

View File

@@ -10,7 +10,7 @@ import { useVatReturnTaxInvoiceMutation } from '../../api/use-vat-return-tax-inv
import { TaxInvoiceSample } from '@/entities/common/ui/tax-invoice-sample';
import { useVatReturnTaxInvoiceSendEmailMutation } from '../../api/use-vat-return-tax-invoice-send-email-mutation';
import { snackBar } from '@/shared/lib';
import { useDownloadBottomSheetOnStore } from '@/shared/model/store';
import { useDownloadBottomSheetOn2Store } from '@/shared/model/store';
export interface AmountSectionProps {
taxInvoiceNumber: string;
@@ -23,7 +23,7 @@ export const AmountSection = ({
}: AmountSectionProps) => {
const { t, i18n } = useTranslation();
const [isOpen, setIsOpen] = useState<boolean>(false);
const { downloadBottomSheetOn, setDownloadBottomSheetOn } = useDownloadBottomSheetOnStore();
const { downloadBottomSheetOn2, setDownloadBottomSheetOn2 } = useDownloadBottomSheetOn2Store();
const [taxInvoiceSampleOn, setTaxInvoiceSampleOn] = useState<boolean>(false);
@@ -95,7 +95,7 @@ export const AmountSection = ({
};
const onClickToOpenDownloadBottomSheet = () => {
setDownloadBottomSheetOn(true);
setDownloadBottomSheetOn2(true);
};
return (
@@ -151,10 +151,10 @@ export const AmountSection = ({
>{t('vatReturn.taxInvoice')}</button>
</div>
</div>
{ !!downloadBottomSheetOn &&
{ !!downloadBottomSheetOn2 &&
<DownloadBottomSheet
bottomSheetOn={ downloadBottomSheetOn }
setBottomSheetOn={ setDownloadBottomSheetOn }
bottomSheetOn={ downloadBottomSheetOn2 }
setBottomSheetOn={ setDownloadBottomSheetOn2 }
imageMode={ true }
emailMode={ true }
sendRequest={ onRequestDownload }