Skip to content

Commit

Permalink
feat: update server hono
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Nov 27, 2024
1 parent ff6b0f7 commit 5beaca3
Show file tree
Hide file tree
Showing 6 changed files with 2,428 additions and 1,637 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -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">
Expand Down
4 changes: 2 additions & 2 deletions apps/renderer/src/queries/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions apps/renderer/src/store/entry-history/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class EntryHistoryActions {
id: entryId,
},
query: {
page: "1",
size: "100",
page: 1,
size: 100,
},
})

Expand Down
Loading

0 comments on commit 5beaca3

Please sign in to comment.