refactor: implement trpc client pattern for EarnAndBurn Journey
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import SectionContainer from "@/components/Section/Container"
|
||||
import SectionHeader from "@/components/Section/Header"
|
||||
import SectionLink from "@/components/Section/Link"
|
||||
@@ -13,14 +11,6 @@ export default async function EarnAndBurn({
|
||||
subtitle,
|
||||
title,
|
||||
}: AccountPageComponentProps) {
|
||||
const transactionsData =
|
||||
await serverClient().user.transaction.friendTransactions({
|
||||
limit: 10,
|
||||
page: 1,
|
||||
})
|
||||
if (!transactionsData) {
|
||||
return null
|
||||
}
|
||||
return (
|
||||
<SectionContainer>
|
||||
<SectionHeader title={title} link={link} subtitle={subtitle} />
|
||||
|
||||
Reference in New Issue
Block a user