Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
reedoooo committed Apr 9, 2024
1 parent 6c16f63 commit 1ca3d69
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/layout/collection/SelectCollectionHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const SelectCollectionHeader = ({ openNewDialog }) => {
<FlexContainer>
<SimpleSectionHeader
sectionName="Collection Portfolio"
userName={user?.userBasicData?.firstName}
userName={user?.username}
sectionDescription="Last updated:"
lastUpdated={new Date().toLocaleDateString('en-US', {
year: 'numeric',
Expand Down
14 changes: 11 additions & 3 deletions src/pages/CollectionPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@ import PageLayout from '../layout/REUSABLE_COMPONENTS/PageLayout';
import useSelectedCollection from '../context/MAIN_CONTEXT/CollectionContext/useSelectedCollection';
import useCollectionManager from '../context/MAIN_CONTEXT/CollectionContext/useCollectionManager';
import { useLoading } from '../context/hooks/useLoading';
import LoadingOverlay from '../layout/REUSABLE_COMPONENTS/system-utils/LoadingOverlay';

const CollectionPage = () => {
const { selectedCollection, allCollections, resetCollection } =
useSelectedCollection();
const { fetchCollections, hasFetchedCollections } = useCollectionManager();
const selectionData = useSelectedCollection();
if (!selectionData) {
return <LoadingOverlay />;
}
const { selectedCollection, allCollections, resetCollection } = selectionData;
const collectionData = useCollectionManager();
if (!collectionData) {
return <LoadingOverlay />;
}
const { fetchCollections, hasFetchedCollections } = collectionData;

const { returnDisplay, isModalOpen, modalContent, closeModal } =
useLoadingAndModal();
Expand Down

0 comments on commit 1ca3d69

Please sign in to comment.