Skip to content

Commit

Permalink
refactor(openalex): Integrate "views-selector" into "list-view"
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Dec 4, 2024
1 parent 955c062 commit 7536df7
Show file tree
Hide file tree
Showing 3 changed files with 307 additions and 338 deletions.
5 changes: 2 additions & 3 deletions client/src/pages/openalex-affiliations/results/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { getTagColor } from '../../../utils/tags';
import { getWorks } from '../../../utils/works';
import ExportErrorsButton from '../components/export-errors-button';
import SendFeedbackButton from '../components/send-feedback-button';
import ViewsSelector from './views-selector';
import ListView from './list-view';

import 'primereact/resources/primereact.min.css';
import 'primereact/resources/themes/lara-light-indigo/theme.css';
Expand Down Expand Up @@ -212,7 +212,6 @@ export default function Affiliations() {
// TODO: afficher les ROR supprimés (striked) dans la modal de suppression - à discuter
// TODO: pastilles de couleur pour les RORs
// TODO: optimisation
// TODO: Rename views-selector component

const toggleRemovedRor = (affiliationId, rorId) => {
const updatedAffiliations = affiliations.map((affiliation) => {
Expand Down Expand Up @@ -686,7 +685,7 @@ export default function Affiliations() {
/>
</div>
</div>
<ViewsSelector
<ListView
filteredAffiliationName={filteredAffiliationName}
filteredAffiliations={filteredAffiliations}
removeRorFromAddList={removeRorFromAddList}
Expand Down
Loading

0 comments on commit 7536df7

Please sign in to comment.