Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

chore: activity page changes #86

Merged
merged 4 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/components/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const Login: React.FC<LoginProps> = ({ currentUser, setUserFunction }) => {

const login = async () => {
await handleLogin().then((loggedUser) => {
if (!loggedUser)
setMessage(
"You must be an admin on this project in order to see this data. If you believe this to be an error, please reach out to David Lindstrom ([email protected])."
)
if (!loggedUser) setMessage("You must be an admin on this project in order to see this data.")
setUserFunction(loggedUser)
})
}
Expand Down
10 changes: 1 addition & 9 deletions src/consts.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
export const SITE_TITLE = "MMP"
export const SITE_DESCRIPTION = "Mesoamerican Migration Project"

export const LINKS = [
"people",
"news",
"publications",
"study-design",
"data",
"documentation",
"activity",
]
export const LINKS = ["people", "news", "publications", "study-design", "data", "documentation"]
2 changes: 1 addition & 1 deletion src/pages/activity.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import Layout from "../layouts/Layout.astro"
import ActivityPage from "../components/ActivityPage"
---

<Layout title="Admin" description="History Table of Downloads">
<Layout title="Activity" description="History Table of Downloads">
<ActivityPage client:only="react" />
</Layout>