Compare commits
1 Commits
3f989d10a5
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
99fb460558
|
@@ -28,14 +28,8 @@ import {
|
|||||||
} from "@chakra-ui/react";
|
} from "@chakra-ui/react";
|
||||||
import { useLoaderData } from "@remix-run/react";
|
import { useLoaderData } from "@remix-run/react";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import calendarStyles from "react-big-calendar/lib/css/react-big-calendar.css";
|
|
||||||
import { type LinksFunction } from "@remix-run/cloudflare";
|
|
||||||
import { EtMember } from "../../generated/prisma/client.js";
|
import { EtMember } from "../../generated/prisma/client.js";
|
||||||
|
|
||||||
export const links: LinksFunction = () => {
|
|
||||||
return [{ href: calendarStyles, rel: "stylesheet" }];
|
|
||||||
};
|
|
||||||
|
|
||||||
export async function loader({ context }: { context: RequestContext }) {
|
export async function loader({ context }: { context: RequestContext }) {
|
||||||
if (!context.data.current_user)
|
if (!context.data.current_user)
|
||||||
throw new Response(null, {
|
throw new Response(null, {
|
||||||
|
|||||||
Reference in New Issue
Block a user