Skip to content

Commit

Permalink
[fix] ボタンからモーダルへ値を渡すように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
TkymHrt committed Aug 6, 2024
1 parent 9a25d34 commit 7e42385
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ import * as React from 'react';
import { useState } from 'react';

import { DetailEditModal } from './DetailEditModal';
import { Expense, PurchaseReportView } from '@/type/common';
import { CloseButton, EditButton, Modal, PrimaryButton } from '@components/common';
import EditModal from '@components/purchasereports/EditModal';

interface Props {
children?: React.ReactNode;
purchaseReportViewItem: PurchaseReportView;
expenses: Expense[];
id: number;
isDisabled: boolean;
}
Expand Down Expand Up @@ -47,6 +50,8 @@ const OpenEditModalButton: React.FC<Props> = (props) => {
{step === 'editDetails' && (
<DetailEditModal
purchaseReportId={props.id}
expenses={props.expenses}
purchaseReportViewItem={props.purchaseReportViewItem}
isOpen={true}
setIsOpen={closeModal}
onOpenInitial={onOpenInitial}
Expand Down

0 comments on commit 7e42385

Please sign in to comment.