Skip to content

Commit 91e7790

Browse files
committed
Refactor mongo data schema
1 parent 745236e commit 91e7790

29 files changed

+2662
-687
lines changed
Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
11
import { Box } from "@chakra-ui/react";
22
import ParentDashboardClientLayout from "@/components/dashboards/parentDashboard/ParentDashboardClientLayout";
3-
import { getUserByWalletAddress } from "@/services/mongo/routes/user";
4-
import { User } from "@/data-schema/types";
5-
import { ethers } from "ethers";
6-
7-
const getProps = async (context: any) => {
8-
const { parentAddress } = context.params || {};
9-
const user = await getUserByWalletAddress(parentAddress);
10-
return {
11-
user,
12-
};
13-
};
143

154
export default async function ParentDashboard(context: any) {
16-
const { user } = (await getProps(context)) as {
17-
user: User;
18-
};
19-
205
return (
216
<Box height="100vh">
22-
<ParentDashboardClientLayout user={user} />
7+
<ParentDashboardClientLayout />
238
</Box>
249
);
2510
}

app/perform-settlement/[token]/page.tsx

Lines changed: 0 additions & 357 deletions
This file was deleted.

0 commit comments

Comments
 (0)