This commit is contained in:
2025-12-22 09:47:10 -03:00
parent f35253a8d4
commit a524666837
4 changed files with 19 additions and 5 deletions

View File

@@ -1,3 +1,16 @@
export default function Route() {
return <>...</>
import { Card, CardContent } from '@repo/ui/components/ui/card'
import type { Route } from './+types/route'
export function meta({}: Route.MetaArgs) {
return [{ title: '' }]
}
export default function Route() {
return (
<div className="lg:max-w-4xl mx-auto space-y-2.5">
<Card>
<CardContent>,,,</CardContent>
</Card>
</div>
)
}

View File

@@ -68,7 +68,7 @@ export default function Route({ loaderData: { data } }: Route.ComponentProps) {
return (
<>
<div className="flex flex-col lg:flex-row justify-between gap-2.5 mb-2.5">
<div className="flex lg:flex-row justify-between gap-2.5 mb-2.5">
<div className="2xl:w-92">
<SearchForm
placeholder={

View File

@@ -113,13 +113,14 @@ export async function loader({ params, context, request }: Route.LoaderArgs) {
}
export async function action({ params, request, context }: Route.ActionArgs) {
const { orgid: org_id } = params
const body = (await request.json()) as object
const r = await req({
url: `enrollments`,
headers: new Headers({ 'Content-Type': 'application/json' }),
method: HttpMethod.POST,
body: JSON.stringify({ org_id: params.orgid, ...body }),
body: JSON.stringify({ org_id, ...body }),
request,
context
})