Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
car-crushers-portal/app/routes/events-team_.edit-event_.$id.tsx
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22 lines (17 sloc)
576 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Button, Container, Textarea } from "@chakra-ui/react"; | |
import { type LoaderFunctionArgs } from "@remix-run/cloudflare"; | |
export function meta() { | |
return [ | |
{ | |
title: "Edit Event" | |
} | |
] | |
} | |
export async function loader({ context, params }: { context: RequestContext, params: LoaderFunctionArgs & { id: string } }) { | |
const eventData = await context.env.D1.prepare("SELECT answer, created_by, day, details, month, year WHERE id = ?;").bind(params.id); | |
if (!eventData) throw new Response(null, { | |
status: 404, | |
}); | |
} | |
export default function () { | |
} |