fix range
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
import {
|
||||
BookCopyIcon,
|
||||
CalendarClockIcon,
|
||||
DollarSignIcon,
|
||||
FileBadgeIcon,
|
||||
GraduationCap,
|
||||
LayoutDashboardIcon,
|
||||
ShieldUserIcon,
|
||||
ShoppingCartIcon,
|
||||
UploadIcon,
|
||||
UsersIcon
|
||||
} from 'lucide-react'
|
||||
@@ -31,7 +31,7 @@ const data = {
|
||||
{
|
||||
title: 'Histórico de compras',
|
||||
url: '/orders',
|
||||
icon: DollarSignIcon
|
||||
icon: ShoppingCartIcon
|
||||
}
|
||||
],
|
||||
navUser: [
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { Route } from './+types/route'
|
||||
|
||||
import { DateTime } from 'luxon'
|
||||
import { CalendarIcon, PlusCircleIcon, PlusIcon } from 'lucide-react'
|
||||
import { MeiliSearchFilterBuilder } from 'meilisearch-helper'
|
||||
import { Suspense, useState } from 'react'
|
||||
@@ -226,12 +227,11 @@ function useRangeParams() {
|
||||
}
|
||||
|
||||
const [rangeField, from_] = from.split(':')
|
||||
|
||||
return {
|
||||
rangeField,
|
||||
dateRange: {
|
||||
from: new Date(from_),
|
||||
to: new Date(to)
|
||||
from: DateTime.fromISO(from_).toJSDate(),
|
||||
to: DateTime.fromISO(to).toJSDate()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,8 +62,8 @@ export default function Forgot({}: Route.ComponentProps) {
|
||||
Redefinir senha
|
||||
</h1>
|
||||
<p className="text-white/50 text-sm">
|
||||
Digite seu email e lhe enviaremos um email com as instruções para
|
||||
redefinir sua senha.
|
||||
Digite seu endereço de email e lhe enviaremos um email com as
|
||||
instruções para redefinir sua senha.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -25,13 +25,13 @@ export function DataTablePagination<TData>({
|
||||
<div className="flex items-center gap-2">
|
||||
<p className="text-sm font-medium hidden lg:block">Itens por página</p>
|
||||
<Select
|
||||
value={String(table.getState().pagination.pageSize)}
|
||||
value={String(pageSize)}
|
||||
onValueChange={(value) => {
|
||||
table.setPageSize(Number(value))
|
||||
}}
|
||||
>
|
||||
<SelectTrigger>
|
||||
<SelectValue placeholder={table.getState().pagination.pageSize} />
|
||||
<SelectTrigger className="w-20">
|
||||
<SelectValue>{pageSize}</SelectValue>
|
||||
</SelectTrigger>
|
||||
<SelectContent side="top">
|
||||
{[12, 25, 50, 100].map((pageSize) => (
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import {
|
||||
ChevronDown,
|
||||
CirclePlayIcon,
|
||||
DollarSignIcon,
|
||||
ShoppingCartIcon,
|
||||
GraduationCapIcon,
|
||||
LayoutDashboardIcon,
|
||||
LightbulbIcon,
|
||||
@@ -122,7 +122,7 @@ export function NavUser({
|
||||
to="//scorm.eduseg.workers.dev/history"
|
||||
className="cursor-pointer"
|
||||
>
|
||||
<DollarSignIcon />
|
||||
<ShoppingCartIcon />
|
||||
Histórico de compras
|
||||
</Link>
|
||||
</DropdownMenuItem>
|
||||
|
||||
Reference in New Issue
Block a user