Skip to content

Commit

Permalink
PPP column filter
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmehta committed Oct 23, 2023
1 parent 7ef8f56 commit 0b06ddf
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,21 @@ import {
faCaretDown,
} from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { usePermissions } from 'ui';
import useBatchDownloader from './hooks/useBatchDownloader';
import useAotfContext from './hooks/useAotfContext';
import dataSources from './static_datasets/dataSourcesAssoc';
import OriginalDataSources from './static_datasets/dataSourcesAssoc';
import prioritizationCols from './static_datasets/prioritizationCols';

const { isPartnerPreview } = usePermissions();

Check failure on line 42 in apps/platform/src/components/AssociationsToolkit/DataDownloader.jsx

View workflow job for this annotation

GitHub Actions / Build genetics

React Hook "usePermissions" cannot be called at the top level. React Hooks must be called in a React function component or a custom React Hook function

Check failure on line 42 in apps/platform/src/components/AssociationsToolkit/DataDownloader.jsx

View workflow job for this annotation

GitHub Actions / Build platform

React Hook "usePermissions" cannot be called at the top level. React Hooks must be called in a React function component or a custom React Hook function

const dataSources = OriginalDataSources.filter(e => {
if (isPartnerPreview && e.isPrivate) {
return e;
} else if (!e.isPrivate) return e;
return;
});

const LabelContainer = styled('div')({
marginBottom: 12,
});
Expand Down

0 comments on commit 0b06ddf

Please sign in to comment.