Skip to content

Commit

Permalink
Remove unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jesstelford committed Feb 26, 2024
1 parent 92dfc17 commit 9c5fd0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
13 changes: 0 additions & 13 deletions polaris-react/src/components/IndexTable/IndexTable.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1298,19 +1298,6 @@ $loading-panel-height: 53px;
top: -1000px;
left: -1000px;
}

&.StickyTableHeader-sticky.StickyTableHeader-scrolling {
// stylelint-disable-next-line selector-max-class, selector-max-combinators, selector-max-specificity -- generated by polaris-migrator DO NOT COPY
.StickyTableColumnHeader {
@media (--p-breakpoints-sm-up) {
filter: drop-shadow(1px 0 0 var(--p-color-border-secondary));
}
}
}
}

.StickyTableColumnHeader {
flex: 0 0 auto;
}

.StickyTableHeadings {
Expand Down
10 changes: 1 addition & 9 deletions polaris-react/src/components/IndexTable/IndexTable.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, {useRef, useState, useEffect, useCallback, useMemo} from 'react';
import {SortAscendingIcon, SortDescendingIcon} from '@shopify/polaris-icons';
import {CSSTransition} from 'react-transition-group';
import {themeDefault, toPx} from '@shopify/polaris-tokens';
import type {SpaceScale} from '@shopify/polaris-tokens';

import {debounce} from '../../utilities/debounce';
Expand Down Expand Up @@ -867,7 +866,7 @@ function IndexTableBase({
);

function renderHeading(
Tag: JSX.ElementType,
Tag: React.ElementType,
tagProps: {[x: string]: unknown},
) {
return (heading: IndexTableHeading, index: number) => {
Expand Down Expand Up @@ -1207,13 +1206,6 @@ function IndexTableBase({
}
}

const isBreakpointsXS = () => {
return typeof window === 'undefined'
? false
: window.innerWidth <
parseFloat(toPx(themeDefault.breakpoints['breakpoints-sm']) ?? '');
};

function getHeadingKey(heading: IndexTableHeading): string {
if (heading.id) {
return heading.id;
Expand Down

0 comments on commit 9c5fd0c

Please sign in to comment.