From d6e908122f859c3d68ecccd5567235c1450ccbd8 Mon Sep 17 00:00:00 2001 From: erinz2020 Date: Tue, 9 Jan 2024 20:19:09 +0000 Subject: [PATCH] make data page the home page --- src/AuthenticatedSwitch.jsx | 7 +- .../AuthenticatedAppHeader/ActionsPane.jsx | 2 +- src/components/UserProfile.jsx | 277 +++++++----------- src/pages/dataPage/DataPage.jsx | 15 +- 4 files changed, 125 insertions(+), 176 deletions(-) diff --git a/src/AuthenticatedSwitch.jsx b/src/AuthenticatedSwitch.jsx index 8d0597b4..eff39216 100644 --- a/src/AuthenticatedSwitch.jsx +++ b/src/AuthenticatedSwitch.jsx @@ -218,9 +218,12 @@ export default function AuthenticatedSwitch({ - + + + + @@ -235,4 +238,4 @@ export default function AuthenticatedSwitch({ /> ); -} \ No newline at end of file +} diff --git a/src/components/AuthenticatedAppHeader/ActionsPane.jsx b/src/components/AuthenticatedAppHeader/ActionsPane.jsx index 5dc67427..cb084c4a 100644 --- a/src/components/AuthenticatedAppHeader/ActionsPane.jsx +++ b/src/components/AuthenticatedAppHeader/ActionsPane.jsx @@ -94,7 +94,7 @@ export default function NotificationsPane({ onClose={closePopover} > - + { if (!userData || !metadataSchemas) return []; @@ -104,120 +97,108 @@ export default function UserProfile({ open={preferenceModalOpen} onClose={() => setPreferenceModalOpen(false)} /> -
- - - - setEditingProfile(true) // ??? - } - renderAvatar={ - - } - renderOptions={ - noCollaborate ? undefined : ( - - ) - } + + + + + setEditingProfile(true) // ??? + } + renderAvatar={ + + } + renderOptions={ + noCollaborate ? undefined : ( + + ) + } + > +
-
+ + {`@${communityUsername}`} + +
+ + )} + + +
+
+ + - -
+ +
- - - + - - - -
+ + + + + {children}
- - + +
+ {/* } projects={[ @@ -227,60 +208,26 @@ export default function UserProfile({ ]} /> */} - - {!someoneElse && ( - - - - )} - {someoneElse && viewerIsUserManager && ( - - - - )} - {/* - */} + + + + {!someoneElse && ( + + + + )} + {someoneElse && viewerIsUserManager && ( + + + + )} + +
diff --git a/src/pages/dataPage/DataPage.jsx b/src/pages/dataPage/DataPage.jsx index 41aadf9e..e19d3305 100644 --- a/src/pages/dataPage/DataPage.jsx +++ b/src/pages/dataPage/DataPage.jsx @@ -14,8 +14,6 @@ import SightingsCard from '../../components/cards/SightingsCard'; import CardContainer from '../../components/cards/CardContainer'; import useGetMe from '../../models/users/useGetMe'; import Text from '../../components/Text'; -import HomeBreadcrumbs from '../home/HomeBreadcrumbs'; -import ButtonLink from '../../components/ButtonLink'; import LoadingScreen from '../../components/LoadingScreen'; import useDeleteSighting from '../../models/sighting/useDeleteSighting'; @@ -107,12 +105,13 @@ export default function DataPage() { return ( +
- - { @@ -218,7 +217,7 @@ export default function DataPage() {