Skip to content

Commit

Permalink
type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chloerice committed Sep 6, 2024
1 parent 0651754 commit 484e1a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions polaris-react/src/components/IndexFilters/IndexFilters.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useMemo, useEffect, useCallback, useRef, useState} from 'react';
import React, {useMemo, useCallback, useRef} from 'react';
import {Transition} from 'react-transition-group';

import {useI18n} from '../../utilities/i18n';
Expand All @@ -12,7 +12,6 @@ import {Filters} from '../Filters';
import type {FiltersProps} from '../Filters';
import {Tabs} from '../Tabs';
import type {TabsProps} from '../Tabs';
import {TextField} from '../TextField';
import {useBreakpoints} from '../../utilities/breakpoints';

import {useIsSticky} from './hooks';
Expand Down Expand Up @@ -440,9 +439,6 @@ export function IndexFilters({
disabled={disabled}
pressed={mode === IndexFiltersMode.Filtering}
disclosureZIndexOverride={disclosureZIndexOverride}
hasAppliedFilters={
appliedFilters && appliedFilters?.length > 0
}
onClick={handleClickFilterButton}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {FilterIcon} from '@shopify/polaris-icons';
import {Tooltip} from '../../../Tooltip';
import {Text} from '../../../Text';
import {Button} from '../../../Button';
import {Box} from '../../../Box';
import {classNames} from '../../../../utilities/css';

import styles from './FilterButton.module.css';
Expand All @@ -15,7 +14,6 @@ export interface FilterButtonProps {
pressed?: boolean;
tooltipContent: string;
disclosureZIndexOverride?: number;
hasAppliedFilters?: boolean;
onClick: () => void;
}

Expand Down

0 comments on commit 484e1a2

Please sign in to comment.