@@ -8,7 +8,7 @@ import { Button } from '@/components/ui/button'
8
8
import { Progress } from '@/components/ui/progress'
9
9
import { Separator } from '@/components/ui/separator'
10
10
import { Statistics } from '@/lib/sql_utils'
11
- import { addHours , parseISO , subHours } from 'date-fns'
11
+ import { addHours , subHours } from 'date-fns'
12
12
import { Pencil } from 'lucide-react'
13
13
import { redirect } from 'next/navigation'
14
14
import * as React from 'react'
@@ -48,13 +48,13 @@ export async function CarbsList({ params }: Props) {
48
48
carb . timestamp . getTime ( ) >= start . getTime ( ) &&
49
49
carb . timestamp . getTime ( ) <= end . getTime ( )
50
50
)
51
- . sort ( ( a , b ) => b . timestamp . getTime ( ) - a . timestamp . getTime ( ) )
51
+ . sort ( ( a , b ) => a . timestamp . getTime ( ) - b . timestamp . getTime ( ) )
52
52
53
53
return (
54
54
< >
55
55
< PageDatePicker baseUrl = "/carbs/list" date = { date } />
56
- < div className = "space-y-4 border bg-white max-w-5xl mx-auto rounded-md shadow p-2 mt-4 " >
57
- < div >
56
+ < div className = "p-2" >
57
+ < div className = " border bg-white max-w-5xl mx-auto rounded-md shadow p-2 mt-4" >
58
58
{ carbs . map ( ( carb , i , arr ) => {
59
59
const over = carb . observedCarbs > carb . carbs
60
60
@@ -96,7 +96,7 @@ export async function CarbsList({ params }: Props) {
96
96
/>
97
97
) }
98
98
</ div >
99
- { arr . length - 1 !== i && < Separator /> }
99
+ { arr . length - 1 !== i && < Separator className = "my-2" /> }
100
100
</ div >
101
101
)
102
102
} ) }
0 commit comments