Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add point count on et members page
  • Loading branch information
regalijan committed Feb 21, 2024
1 parent 4ea4053 commit 0f257ce
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/routes/et-members.tsx
Expand Up @@ -4,6 +4,7 @@ import {
Heading,
Link,
Table,
TableCaption,
TableContainer,
Tbody,
Td,
Expand All @@ -14,7 +15,7 @@ import {

export async function loader({ context }: { context: RequestContext }) {
const etData = await context.env.D1.prepare(
"SELECT id, name, roblox_id FROM et_members;",
"SELECT id, name, points, roblox_id FROM et_members;",
).all();

if (etData.error)
Expand Down Expand Up @@ -45,11 +46,15 @@ export default function () {
<Heading>Events Team Members</Heading>
<TableContainer pt="16px">
<Table variant="simple">
<TableCaption>
Points are updated at the end of the month
</TableCaption>
<Thead>
<Tr>
<Th>Discord ID</Th>
<Th>Name</Th>
<Th>Roblox ID</Th>
<Th>Points</Th>
<Th>Remove</Th>
</Tr>
</Thead>
Expand All @@ -59,6 +64,7 @@ export default function () {
<Td>{member.id}</Td>
<Td>{member.name}</Td>
<Td>{member.roblox_id}</Td>
<Td>{member.points}</Td>
<Td>
<Link onClick={async () => removeMember(member.id)}>
Remove
Expand Down

0 comments on commit 0f257ce

Please sign in to comment.