Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlago99 committed Dec 21, 2024
1 parent 4706c3c commit 7b935fb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
6 changes: 1 addition & 5 deletions src/components/creditNote/CreditNotesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ import styled, { css } from 'styled-components'

import CreditNoteBadge from '~/components/creditNote/CreditNoteBadge'
import { Filters } from '~/components/designSystem/Filters/Filters'
import {
AvailableFiltersEnum,
AvailableQuickFilters,
} from '~/components/designSystem/Filters/types'
import { AvailableFiltersEnum } from '~/components/designSystem/Filters/types'
import { addToast } from '~/core/apolloClient'
import { intlFormatNumber } from '~/core/formats/intlFormatNumber'
import {
Expand Down Expand Up @@ -41,7 +38,6 @@ import {
import {
ActionItem,
InfiniteScroll,
QuickFilters,
Skeleton,
Table,
TableColumn,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MultipleComboBox } from '~/components/form'
import { CreditNoteCreditStatusEnum, CreditNoteRefundStatusEnum } from '~/generated/graphql'
import { CreditNoteRefundStatusEnum } from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'

import { FiltersFormValues } from '../FiltersPanelPoper'
Expand Down
6 changes: 1 addition & 5 deletions src/components/designSystem/Filters/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ import {
InvoiceAvailableFilters,
} from './types'

type FilterValueMapArgument = any

const FILTER_VALUE_MAP: Partial<
Record<AvailableFiltersEnum, (value: FilterValueMapArgument) => any>
> = {
const FILTER_VALUE_MAP: Partial<Record<AvailableFiltersEnum, Function>> = {
[AvailableFiltersEnum.amount]: (value: string) => {
const [interval, from, to] = value.split(',')

Expand Down
2 changes: 1 addition & 1 deletion src/components/exports/ExportDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export type ExportValues<T> = {

type ExportDialogProps = {
totalCountLabel: string
onExport: (values: any) => void
onExport: Function
disableExport?: boolean
resourceTypeOptions: {
label: string
Expand Down
1 change: 1 addition & 0 deletions src/pages/InvoicesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ const InvoicesPage = () => {
nextFetchPolicy: 'network-only',
variables: {
limit: 20,
...filtersForCreditNotesQuery,
},
})

Expand Down

0 comments on commit 7b935fb

Please sign in to comment.