오류 수정
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
import { IMAGE_ROOT } from "@/shared/constants/common";
|
import { IMAGE_ROOT } from "@/shared/constants/common";
|
||||||
import { Breakdown } from "../model/types";
|
import { Breakdown } from "../model/types";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
|
import { motion } from 'framer-motion';
|
||||||
import { NumericFormat } from "react-number-format";
|
import { NumericFormat } from "react-number-format";
|
||||||
import { SlideDown } from 'react-slidedown';
|
import { SlideDown } from 'react-slidedown';
|
||||||
import 'react-slidedown/lib/slidedown.css';
|
import 'react-slidedown/lib/slidedown.css';
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { BottomSheetMotionDuration, BottomSheetMotionVaiants } from "@/entities/common/model/constant";
|
||||||
|
|
||||||
export interface VatReturnListDetailBottomSheetProps {
|
export interface VatReturnListDetailBottomSheetProps {
|
||||||
bottomSheetOn: boolean;
|
bottomSheetOn: boolean;
|
||||||
@@ -45,8 +47,19 @@ export const VatReturnListDetailBottomSheet = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="bg-dim"></div>
|
{ bottomSheetOn &&
|
||||||
<div className="bottomsheet">
|
<div
|
||||||
|
className="bg-dim"
|
||||||
|
style={{ zIndex: 1030 }}
|
||||||
|
></div>
|
||||||
|
}
|
||||||
|
<motion.div
|
||||||
|
className="bottomsheet"
|
||||||
|
initial="hidden"
|
||||||
|
animate={ (bottomSheetOn)? 'visible': 'hidden' }
|
||||||
|
variants={ BottomSheetMotionVaiants }
|
||||||
|
transition={ BottomSheetMotionDuration }
|
||||||
|
>
|
||||||
<div className="bottomsheet-header">
|
<div className="bottomsheet-header">
|
||||||
<div className="bottomsheet-title">
|
<div className="bottomsheet-title">
|
||||||
<h2>{t('vatReturn.viewDetails')}</h2>
|
<h2>{t('vatReturn.viewDetails')}</h2>
|
||||||
@@ -143,7 +156,7 @@ export const VatReturnListDetailBottomSheet = ({
|
|||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</motion.div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user