Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/src/features/Event/schemas/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const EventSchema = z.object({
updated_at: z.coerce.date().nullable(),
banner: z.url().or(z.literal("")).nullable(),
application_review_started: z.boolean(),
application_review_finished: z.boolean(),
});

export type Event = z.infer<typeof EventSchema>;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default function AttendeeOverview() {
return <div>Attendee Overview Component</div>;
return <div>More here coming soon!</div>;
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Button } from "@/components/ui/Button";
import { useEvent } from "@/features/Event/hooks/useEvent";
import { createFileRoute } from "@tanstack/react-router";
import { Heading } from "react-aria-components";
import { toast } from "react-toastify";

export const Route = createFileRoute(
"/_protected/events/$eventId/dashboard/_admin/application-decisions",
Expand All @@ -15,17 +13,6 @@ function RouteComponent() {
const { user } = Route.useRouteContext();
const event = useEvent(eventId);

const checkReviewsCompleted = async () => {
if (!event.data) return;

const isCompleted = true; // TODO: fix. this is being temporarily left in here to get a github workflow to run.
if (isCompleted) {
toast.success(
"All application reviews completed. You can now proceed with calculating decisions.",
);
}
};

const loading = !user || event.isLoading;

if (loading) {
Expand All @@ -49,20 +36,6 @@ function RouteComponent() {
<Heading className="text-2xl lg:text-3xl font-semibold mb-4">
Application Decisions
</Heading>

{event.data.application_review_finished ? (
<p>Show applications decision page</p>
) : (
<>
<Button
size="sm"
className="m-0 h-fit w-fit"
onPress={checkReviewsCompleted}
>
Run Pre-Decisions Check
</Button>
</>
)}
</div>
</main>
);
Expand Down
Loading