feat: update server hono
This commit is contained in:
parent
ff6b0f780d
commit
5beaca3c77
|
|
@ -23,7 +23,7 @@ export const TransactionsSection: Component = ({ className }) => {
|
|||
|
||||
const transactions = useWalletTransactions({
|
||||
fromOrToUserId: user?.id,
|
||||
type: type === "all" ? undefined : type,
|
||||
type: type === "all" ? undefined : (type as (typeof TransactionTypes)[number]),
|
||||
})
|
||||
|
||||
const serverConfigs = useServerConfigs()
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import {
|
|||
TooltipTrigger,
|
||||
} from "@follow/components/ui/tooltip/index.jsx"
|
||||
import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/index.js"
|
||||
import type { TransactionTypes } from "@follow/models"
|
||||
import { cn } from "@follow/utils/utils"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
|
|
@ -29,7 +30,7 @@ export const TxTable = ({ className, type }: ComponentType<TxTableProps>) => {
|
|||
const user = useWhoami()
|
||||
const transactions = useWalletTransactions({
|
||||
fromOrToUserId: user?.id,
|
||||
type: type === "all" ? undefined : type,
|
||||
type: type === "all" ? undefined : (type as (typeof TransactionTypes)[number]),
|
||||
})
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { Tooltip, TooltipContent, TooltipTrigger } from "@follow/components/ui/tooltip/index.js"
|
||||
import type { TransactionTypes } from "@follow/models"
|
||||
import dayjs from "dayjs"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
|
|
@ -33,7 +34,7 @@ export const TxTable = ({ type }: TxTableProps) => {
|
|||
const user = useWhoami()
|
||||
const transactions = useWalletTransactions({
|
||||
fromOrToUserId: user?.id,
|
||||
type: type === "all" ? undefined : type,
|
||||
type: type === "all" ? undefined : (type as (typeof TransactionTypes)[number]),
|
||||
})
|
||||
return (
|
||||
<ul className="mt-4 flex flex-col gap-2">
|
||||
|
|
|
|||
|
|
@ -102,8 +102,8 @@ export const entries = {
|
|||
}
|
||||
return apiClient.entries["check-new"].$get({
|
||||
query: {
|
||||
insertedAfter: `${query.insertedAfter}`,
|
||||
view: `${query.view}`,
|
||||
insertedAfter: query.insertedAfter,
|
||||
view: query.view,
|
||||
feedId: query.feedId,
|
||||
read: typeof query.read === "boolean" ? JSON.stringify(query.read) : undefined,
|
||||
feedIdList: query.feedIdList,
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ class EntryHistoryActions {
|
|||
id: entryId,
|
||||
},
|
||||
query: {
|
||||
page: "1",
|
||||
size: "100",
|
||||
page: 1,
|
||||
size: 100,
|
||||
},
|
||||
})
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue