add route

This commit is contained in:
2025-11-19 22:12:18 -03:00
parent f99350f507
commit 5b1ba9e9c7
25 changed files with 162 additions and 334 deletions

View File

@@ -1,4 +1,4 @@
import type { Route } from './+types'
import type { Route } from './+types/route'
import { Suspense } from 'react'
import { Await } from 'react-router'
@@ -48,6 +48,7 @@ export default function Route({ loaderData: { data } }) {
{({ hits, page, hitsPerPage, totalHits }) => {
return (
<DataTable
sort={[{ id: 'created_at', desc: true }]}
columns={columns}
data={hits as Order[]}
pageIndex={page - 1}