Skip to content

Commit fa6b1fe

Browse files
fix all links
1 parent d4f9d67 commit fa6b1fe

File tree

112 files changed

+117
-14365
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+117
-14365
lines changed

apps/dashboard/src/@3rdweb-sdk/react/hooks/useEngine.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import {
77
useQuery,
88
useQueryClient,
99
} from "@tanstack/react-query";
10-
import type { ResultItem } from "app/(app)/team/[team_slug]/(team)/~/engine/(instance)/[engineId]/metrics/components/StatusCodes";
1110
import type { EngineBackendWalletType } from "lib/engine";
1211
import { useState } from "react";
1312
import { useActiveAccount } from "thirdweb/react";
1413
import invariant from "tiny-invariant";
15-
import type { EngineStatus } from "../../../app/(app)/team/[team_slug]/(team)/~/engine/(instance)/[engineId]/overview/components/transactions-table";
14+
import type { ResultItem } from "../../../app/(app)/team/[team_slug]/[project_slug]/engine/dedicated/(instance)/[engineId]/metrics/components/StatusCodes";
15+
import type { EngineStatus } from "../../../app/(app)/team/[team_slug]/[project_slug]/engine/dedicated/(instance)/[engineId]/overview/components/transactions-table";
1616
import { engineKeys } from "../cache-keys";
1717

1818
// Engine instances
@@ -1641,15 +1641,19 @@ interface EngineResourceMetrics {
16411641
};
16421642
}
16431643

1644-
export function useEngineSystemMetrics(engineId: string, teamIdOrSlug: string) {
1644+
export function useEngineSystemMetrics(
1645+
engineId: string,
1646+
teamIdOrSlug: string,
1647+
projectSlug: string,
1648+
) {
16451649
const [enabled, setEnabled] = useState(true);
16461650

16471651
return useQuery({
16481652
queryKey: engineKeys.systemMetrics(engineId),
16491653
queryFn: async () => {
16501654
const res = await apiServerProxy({
16511655
method: "GET",
1652-
pathname: `/v1/teams/${teamIdOrSlug}/engine/${engineId}/metrics`,
1656+
pathname: `/v1/teams/${teamIdOrSlug}/${projectSlug}/engine/dedicated/${engineId}/metrics`,
16531657
});
16541658

16551659
if (!res.ok) {

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/layout.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { TabPathLinks } from "@/components/ui/tabs";
55
import { getThirdwebClient } from "@/constants/thirdweb.server";
66
import { AnnouncementBanner } from "components/notices/AnnouncementBanner";
77
import { redirect } from "next/navigation";
8-
import { Badge } from "../../../../../@/components/ui/badge";
98
import { getValidAccount } from "../../../account/settings/getAccount";
109
import {
1110
getAuthToken,
@@ -75,15 +74,6 @@ export default async function TeamLayout(props: {
7574
path: `/team/${params.team_slug}/~/analytics`,
7675
name: "Analytics",
7776
},
78-
{
79-
path: `/team/${params.team_slug}/~/engine`,
80-
name: (
81-
<span className="flex items-center gap-2">
82-
Engines
83-
<Badge variant="warning">Legacy</Badge>
84-
</span>
85-
),
86-
},
8777
{
8878
path: `/team/${params.team_slug}/~/ecosystem`,
8979
name: "Ecosystems",

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/engine/(general)/EngineFooterCard.stories.tsx

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

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/engine/(general)/_components.tsx

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

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/engine/(general)/import/EngineImportPage.stories.tsx

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

0 commit comments

Comments
 (0)