Skip to content

Commit f910b7b

Browse files
committed
lint
1 parent a4aab5a commit f910b7b

File tree

25 files changed

+52
-95
lines changed

25 files changed

+52
-95
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export interface InAppWalletStats {
244244
uniqueWalletsConnected: number;
245245
}
246246

247-
export interface EcosystemWalletStats extends InAppWalletStats { }
247+
export interface EcosystemWalletStats extends InAppWalletStats {}
248248

249249
export interface UserOpStats {
250250
date: string;
@@ -279,17 +279,17 @@ export interface BillingCredit {
279279

280280
interface UseAccountInput {
281281
refetchInterval?:
282-
| number
283-
| false
284-
| ((
285-
query: Query<
286-
Account,
287-
Error,
288-
Account,
289-
readonly ["account", string, "me"]
290-
>,
291-
) => number | false | undefined)
292-
| undefined;
282+
| number
283+
| false
284+
| ((
285+
query: Query<
286+
Account,
287+
Error,
288+
Account,
289+
readonly ["account", string, "me"]
290+
>,
291+
) => number | false | undefined)
292+
| undefined;
293293
}
294294

295295
export function useAccount({ refetchInterval }: UseAccountInput = {}) {

apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/analytics/components/EcosystemAnalyticsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import {
22
type Range,
33
getLastNDaysRange,
44
} from "components/analytics/date-range-selector";
5-
import { EcosystemWalletUsersChartCard } from "./EcosystemWalletUsersChartCard";
65
import { RangeSelector } from "components/analytics/range-selector";
76
import { getEcosystemWalletUsage } from "data/analytics/wallets/ecosystem";
7+
import { EcosystemWalletUsersChartCard } from "./EcosystemWalletUsersChartCard";
88

99
export async function EcosystemAnalyticsPage({
1010
ecosystemId,

apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/analytics/components/EcosystemWalletUsersChartCard.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
ChartTooltip,
99
ChartTooltipContent,
1010
} from "@/components/ui/chart";
11+
import type { EcosystemWalletStats } from "@3rdweb-sdk/react/hooks/useApi";
1112
import {
1213
EmptyChartState,
1314
LoadingChartState,
@@ -17,10 +18,9 @@ import { TypeScriptIcon } from "components/icons/brand-icons/TypeScriptIcon";
1718
import { UnityIcon } from "components/icons/brand-icons/UnityIcon";
1819
import { DocLink } from "components/shared/DocLink";
1920
import { format } from "date-fns";
21+
import { formatTickerNumber } from "lib/format-utils";
2022
import { useMemo } from "react";
2123
import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts";
22-
import { formatTickerNumber } from "lib/format-utils";
23-
import { EcosystemWalletStats } from "@3rdweb-sdk/react/hooks/useApi";
2424

2525
type ChartData = Record<string, number> & {
2626
time: string; // human readable date
@@ -59,8 +59,8 @@ export function EcosystemWalletUsersChartCard(props: {
5959
authMethodToVolumeMap.set(
6060
authenticationMethod || defaultLabel,
6161
stat.uniqueWalletsConnected +
62-
(authMethodToVolumeMap.get(authenticationMethod || defaultLabel) ||
63-
0),
62+
(authMethodToVolumeMap.get(authenticationMethod || defaultLabel) ||
63+
0),
6464
);
6565
}
6666

apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/analytics/components/RangeSelector.tsx

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

apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/analytics/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Range } from "components/analytics/date-range-selector";
2-
import { EcosystemAnalyticsPage } from "./components/EcosystemAnalyticsPage";
3-
import { FetchError } from "utils/error";
4-
import { Ecosystem } from "../../../types";
1+
import type { Range } from "components/analytics/date-range-selector";
52
import { fetchApiServer } from "data/analytics/fetch-api-server";
3+
import { FetchError } from "utils/error";
4+
import type { Ecosystem } from "../../../types";
5+
import { EcosystemAnalyticsPage } from "./components/EcosystemAnalyticsPage";
66

77
export default async function Page({
88
params,

apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/components/EcosystemSlugLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { COOKIE_ACTIVE_ACCOUNT, COOKIE_PREFIX_TOKEN } from "@/constants/cookie";
2+
import { getEcosystemWalletUsage } from "data/analytics/wallets/ecosystem";
23
import { cookies } from "next/headers";
34
import { redirect } from "next/navigation";
45
import { getAddress } from "thirdweb";
56
import { fetchEcosystem } from "../../../utils/fetchEcosystem";
67
import { EcosystemHeader } from "./ecosystem-header.client";
7-
import { getEcosystemWalletUsage } from "data/analytics/wallets/ecosystem";
88

99
export async function EcosystemLayoutSlug({
1010
children,

apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/components/ecosystem-header.client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { Skeleton } from "@/components/ui/skeleton";
1515
import { TabLinks } from "@/components/ui/tabs";
1616
import { useThirdwebClient } from "@/constants/thirdweb.client";
1717
import { resolveSchemeWithErrorHandler } from "@/lib/resolveSchemeWithErrorHandler";
18+
import type { EcosystemWalletStats } from "@3rdweb-sdk/react/hooks/useApi";
1819
import {
1920
AlertTriangleIcon,
2021
CheckIcon,
@@ -26,9 +27,8 @@ import Link from "next/link";
2627
import { usePathname } from "next/navigation";
2728
import { useEcosystemList } from "../../../hooks/use-ecosystem-list";
2829
import type { Ecosystem } from "../../../types";
29-
import { useEcosystem } from "../hooks/use-ecosystem";
30-
import { EcosystemWalletStats } from "@3rdweb-sdk/react/hooks/useApi";
3130
import { EcosystemWalletsSummary } from "../analytics/components/Summary";
31+
import { useEcosystem } from "../hooks/use-ecosystem";
3232

3333
function EcosystemAlertBanner({ ecosystem }: { ecosystem: Ecosystem }) {
3434
switch (ecosystem.status) {

apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/configuration/components/client/AddPartnerDialogButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from "@/components/ui/dialog";
1111
import { PlusIcon } from "lucide-react";
1212
import { useState } from "react";
13-
import type { Ecosystem } from "../../../../types";
13+
import type { Ecosystem } from "../../../../../types";
1414
import { AddPartnerForm } from "./add-partner-form.client";
1515

1616
export function AddPartnerDialogButton(props: {

apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/configuration/components/client/EcosystemPermissionsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use client";
2+
import { useEcosystem } from "../../../hooks/use-ecosystem";
23
import { AuthOptionsSection } from "../server/auth-options-section";
34
import { EcosystemPartnersSection } from "../server/ecosystem-partners-section";
45
import { IntegrationPermissionsSection } from "../server/integration-permissions-section";
5-
import { useEcosystem } from "../../../hooks/use-ecosystem";
66

77
export function EcosystemPermissionsPage({
88
params,

apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/configuration/components/client/add-partner-form.client.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
"use client";
21
import { Spinner } from "@/components/ui/Spinner/Spinner";
32
import { Button } from "@/components/ui/button";
43
import {
@@ -16,7 +15,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
1615
import { useForm } from "react-hook-form";
1716
import { toast } from "sonner";
1817
import type { z } from "zod";
19-
import type { Ecosystem } from "../../../../types";
18+
import type { Ecosystem } from "../../../../../types";
2019
import { partnerFormSchema } from "../../constants";
2120
import { useAddPartner } from "../../hooks/use-add-partner";
2221

0 commit comments

Comments
 (0)