Skip to content

Commit

Permalink
feat: invoice action
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJiang2021 committed Jul 11, 2023
1 parent 6757266 commit 0432da7
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions apps/storefront/src/pages/invoice/Invoice.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReactElement, useContext, useEffect, useRef, useState } from 'react'
import { useContext, useEffect, useRef, useState } from 'react'
import { useLocation, useNavigate } from 'react-router-dom'
import globalB3 from '@b3/global-b3'
import {
Expand Down Expand Up @@ -34,7 +34,7 @@ import PaymentSuccess from './components/PaymentSuccess'
import PrintTempalte from './components/PrintTempalte'
import InvoiceListType, { filterFormConfig, sortIdArr } from './utils/config'
import { handlePrintPDF } from './utils/pdf'
import { InvoiceItemCard } from './InvoiceItemCard'
// import { InvoiceItemCard } from './InvoiceItemCard'

export interface FilterSearchProps {
[key: string]: string | number | null
Expand Down Expand Up @@ -638,23 +638,23 @@ function Invoice() {
sortByFn={handleSetOrderBy}
isSelectOtherPageCheckbox
hover
renderItem={(
row: InvoiceList,
index?: number,
checkBox?: () => ReactElement
) => (
<InvoiceItemCard
item={row}
checkBox={checkBox}
handleSetSelectedInvoiceAccount={handleSetSelectedInvoiceAccount}
handleViewInvoice={handleViewInvoice}
setIsRequestLoading={setIsRequestLoading}
setInvoiceId={setCurrentInvoiceId}
handleOpenHistoryModal={setIsOpenHistorys}
currentCurrencyToken={currentCurrency.token}
selectedPay={selectedPay}
/>
)}
// renderItem={(
// row: InvoiceList,
// index?: number,
// checkBox?: () => ReactElement
// ) => (
// <InvoiceItemCard
// item={row}
// checkBox={checkBox}
// handleSetSelectedInvoiceAccount={handleSetSelectedInvoiceAccount}
// handleViewInvoice={handleViewInvoice}
// setIsRequestLoading={setIsRequestLoading}
// setInvoiceId={setCurrentInvoiceId}
// handleOpenHistoryModal={setIsOpenHistorys}
// currentCurrencyToken={currentCurrency.token}
// selectedPay={selectedPay}
// />
// )}
/>
{list.length > 0 && !isMobile && (
<Box
Expand Down

0 comments on commit 0432da7

Please sign in to comment.