소스 검색

udpate

tags/Baseline_180220205_Frontend
MSI\derek 11 달 전
부모
커밋
5a217744b6
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. +5
    -3
      src/components/InvoiceSearch/CreateInvoiceModal.tsx

+ 5
- 3
src/components/InvoiceSearch/CreateInvoiceModal.tsx 파일 보기

@@ -13,10 +13,12 @@ import { useTranslation } from 'react-i18next';
import { FormProvider, SubmitHandler, useForm } from 'react-hook-form';
import { Check, Close } from "@mui/icons-material";
import InvoiceTable from './InvoiceTable';
import { ProjectResult } from '@/app/api/projects';

interface Props {
isOpen: boolean,
onClose: () => void;
onClose: () => void
projects: ProjectResult[]
}

const modalSx: SxProps= {
@@ -30,7 +32,7 @@ const modalSx: SxProps= {
bgcolor: 'background.paper',
};

const CreateInvoiceModal: React.FC<Props> = ({isOpen, onClose}) => {
const CreateInvoiceModal: React.FC<Props> = ({isOpen, onClose, projects}) => {
const { t } = useTranslation()
const formProps = useForm<any>();

@@ -61,7 +63,7 @@ const CreateInvoiceModal: React.FC<Props> = ({isOpen, onClose}) => {
marginBlock: 2,
}}
>
<InvoiceTable/>
<InvoiceTable projects={projects}/>
</Box>
<CardActions sx={{ justifyContent: "flex-end" }}>
<Button


불러오는 중...
취소
저장