Skip to content

Commit

Permalink
PSP-9476 fix (#4478)
Browse files Browse the repository at this point in the history
  • Loading branch information
stairaku authored Nov 14, 2024
1 parent e7983ef commit e75c22c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import orderBy from 'lodash/orderBy';
import React, { useContext, useEffect, useMemo, useState } from 'react';
import { FaPlus } from 'react-icons/fa';

import GenericModal from '@/components/common/GenericModal';
import { Section } from '@/components/common/Section/Section';
Expand Down Expand Up @@ -179,6 +180,7 @@ export const DocumentListView: React.FunctionComponent<IDocumentListViewProps> =
<SectionListHeader
claims={[Claims.DOCUMENT_ADD]}
title={title ?? 'Documents'}
addButtonIcon={<FaPlus size={'2rem'} />}
addButtonText={props.addButtonText || 'Add Document'}
onAdd={() => setIsUploadVisible(true)}
/>
Expand Down
2 changes: 2 additions & 0 deletions source/frontend/src/features/notes/list/NoteListView.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import orderBy from 'lodash/orderBy';
import React, { useCallback } from 'react';
import { FaPlus } from 'react-icons/fa';
import { toast } from 'react-toastify';

import GenericModal from '@/components/common/GenericModal';
Expand Down Expand Up @@ -100,6 +101,7 @@ export const NoteListView: React.FunctionComponent<React.PropsWithChildren<INote
claims={[Claims.NOTE_ADD]}
title="Notes"
addButtonText="Add a Note"
addButtonIcon={<FaPlus size={'2rem'} />}
onAdd={openAddNotes}
/>
}
Expand Down

0 comments on commit e75c22c

Please sign in to comment.