Skip to content

Commit 5beaca3

Browse files
committed
feat: update server hono
1 parent ff6b0f7 commit 5beaca3

File tree

6 files changed

+2428
-1637
lines changed

6 files changed

+2428
-1637
lines changed

apps/renderer/src/modules/power/transaction-section/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const TransactionsSection: Component = ({ className }) => {
2323

2424
const transactions = useWalletTransactions({
2525
fromOrToUserId: user?.id,
26-
type: type === "all" ? undefined : type,
26+
type: type === "all" ? undefined : (type as (typeof TransactionTypes)[number]),
2727
})
2828

2929
const serverConfigs = useServerConfigs()

apps/renderer/src/modules/power/transaction-section/tx-table.desktop.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
TooltipTrigger,
1414
} from "@follow/components/ui/tooltip/index.jsx"
1515
import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/index.js"
16+
import type { TransactionTypes } from "@follow/models"
1617
import { cn } from "@follow/utils/utils"
1718
import { useTranslation } from "react-i18next"
1819

@@ -29,7 +30,7 @@ export const TxTable = ({ className, type }: ComponentType<TxTableProps>) => {
2930
const user = useWhoami()
3031
const transactions = useWalletTransactions({
3132
fromOrToUserId: user?.id,
32-
type: type === "all" ? undefined : type,
33+
type: type === "all" ? undefined : (type as (typeof TransactionTypes)[number]),
3334
})
3435

3536
return (

apps/renderer/src/modules/power/transaction-section/tx-table.mobile.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Tooltip, TooltipContent, TooltipTrigger } from "@follow/components/ui/tooltip/index.js"
2+
import type { TransactionTypes } from "@follow/models"
23
import dayjs from "dayjs"
34
import { useTranslation } from "react-i18next"
45

@@ -33,7 +34,7 @@ export const TxTable = ({ type }: TxTableProps) => {
3334
const user = useWhoami()
3435
const transactions = useWalletTransactions({
3536
fromOrToUserId: user?.id,
36-
type: type === "all" ? undefined : type,
37+
type: type === "all" ? undefined : (type as (typeof TransactionTypes)[number]),
3738
})
3839
return (
3940
<ul className="mt-4 flex flex-col gap-2">

apps/renderer/src/queries/entries.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ export const entries = {
102102
}
103103
return apiClient.entries["check-new"].$get({
104104
query: {
105-
insertedAfter: `${query.insertedAfter}`,
106-
view: `${query.view}`,
105+
insertedAfter: query.insertedAfter,
106+
view: query.view,
107107
feedId: query.feedId,
108108
read: typeof query.read === "boolean" ? JSON.stringify(query.read) : undefined,
109109
feedIdList: query.feedIdList,

apps/renderer/src/store/entry-history/action.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class EntryHistoryActions {
1010
id: entryId,
1111
},
1212
query: {
13-
page: "1",
14-
size: "100",
13+
page: 1,
14+
size: 100,
1515
},
1616
})
1717

0 commit comments

Comments
 (0)