Skip to content

Commit 5baa132

Browse files
committed
fix(app2): cleanup
1 parent 6f6c000 commit 5baa132

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

app2/src/lib/components/ui/PacketListPagination.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const { data, onLive, onPrevPage, onNextPage }: Props = $props()
1919
<div class="rounded shadow flex">
2020
<button
2121
onclick={onPrevPage}
22-
class="cursor-pointer border-l border-t border-b bg-zinc-700 border-zinc-600 h-90 w-10 rounded-tl rounded-bl"
22+
class="cursor-pointer border-l border-t border-b bg-zinc-700 border-zinc-600 h-9 w-10 rounded-tl rounded-bl"
2323
>
2424
2525
</button>

app2/src/lib/schema/statistics.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { Data, Schema } from "effect"
1+
import { Schema } from "effect"
22

3-
// Schema for statistics data
43
export const StatisticItem = Schema.Struct({
54
name: Schema.String,
65
value: Schema.Int
@@ -11,22 +10,12 @@ export type StatisticItem = Schema.Schema.Type<typeof StatisticItem>
1110
export const Statistics = Schema.Array(StatisticItem)
1211
export type Statistics = Schema.Schema.Type<typeof Statistics>
1312

14-
// Schema for daily transfers data
1513
export const DailyTransfer = Schema.Struct({
1614
day: Schema.DateTimeUtc,
17-
count: Schema.Number
15+
count: Schema.Int
1816
})
1917

2018
export type DailyTransfer = Schema.Schema.Type<typeof DailyTransfer>
2119

2220
export const DailyTransfers = Schema.Array(DailyTransfer)
2321
export type DailyTransfers = Schema.Schema.Type<typeof DailyTransfers>
24-
25-
// Error types
26-
export class FetchStatisticsError extends Data.TaggedError("FetchStatisticsError")<{
27-
cause: unknown
28-
}> {}
29-
30-
export class FetchDailyTransfersError extends Data.TaggedError("FetchDailyTransfersError")<{
31-
cause: unknown
32-
}> {}

0 commit comments

Comments
 (0)