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