"chore: update frontend dev script to include lint checks and add ESLint config file"
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// src/actions/invoice.ts
|
||||
import { useMemo } from 'react';
|
||||
import axiosInstance, { endpoints, fetcher } from 'src/lib/axios';
|
||||
import type { IInvoiceItem } from 'src/types/invoice';
|
||||
import type { IInvoiceItem, SaveInvoiceData } from 'src/types/invoice';
|
||||
import type { SWRConfiguration } from 'swr';
|
||||
import useSWR from 'swr';
|
||||
|
||||
@@ -97,7 +97,7 @@ export function useSearchInvoices(query: string) {
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
type SaveInvoiceData = IInvoiceItem;
|
||||
// type SaveInvoiceData = IInvoiceItem;
|
||||
|
||||
export async function saveInvoice(invoiceId: string, saveInvoiceData: SaveInvoiceData) {
|
||||
const url = endpoints.invoice.saveInvoice(invoiceId);
|
||||
|
@@ -99,6 +99,7 @@ export function useSearchProducts(query: string) {
|
||||
|
||||
type SaveProductData = {
|
||||
// id: string;
|
||||
|
||||
sku: string;
|
||||
name: string;
|
||||
code: string;
|
||||
|
Reference in New Issue
Block a user