fix typo
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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={
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
@@ -33,7 +33,7 @@ import { SearchForm } from '@repo/ui/components/search-form'
|
||||
import { useSearchParams } from 'react-router'
|
||||
|
||||
export function meta({}: Route.MetaArgs) {
|
||||
return [{ title: 'Expore nossos cursos' }]
|
||||
return [{ title: 'Explore nossos cursos' }]
|
||||
}
|
||||
|
||||
export async function loader({ context }: Route.LoaderArgs) {
|
||||
|
||||
Reference in New Issue
Block a user