diff --git a/apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/billing/BillingSettingsPage.tsx b/apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/billing/BillingSettingsPage.tsx
index 17400005b..012d1079c 100644
--- a/apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/billing/BillingSettingsPage.tsx
+++ b/apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/billing/BillingSettingsPage.tsx
@@ -6,11 +6,11 @@ import { Billing } from "components/settings/Account/Billing";
export const SettingsBillingPage = () => {
const meQuery = useAccount({
- refetchInterval: (account) =>
+ refetchInterval: (query) =>
[
AccountStatus.InvalidPayment,
AccountStatus.InvalidPaymentMethod,
- ].includes(account?.status as AccountStatus)
+ ].includes(query.state?.status as AccountStatus)
? 1000
: false,
});
diff --git a/apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/general/GeneralSettingsPage.tsx b/apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/general/GeneralSettingsPage.tsx
index 0801ce751..babd164e3 100644
--- a/apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/general/GeneralSettingsPage.tsx
+++ b/apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/general/GeneralSettingsPage.tsx
@@ -63,7 +63,7 @@ function TeamNameFormControl(props: {
saveButton={{
onClick: handleSave,
disabled: teamName.length === 0,
- isLoading: updateTeamMutation.isLoading,
+ isLoading: updateTeamMutation.isPending,
}}
errorText={undefined}
noPermissionText={undefined} // TODO
@@ -121,7 +121,7 @@ function TeamSlugFormControl(props: {
saveButton={{
onClick: handleSave,
disabled: teamSlug.length === 0,
- isLoading: updateTeamMutation.isLoading,
+ isLoading: updateTeamMutation.isPending,
}}
noPermissionText={undefined} // TODO
>
@@ -168,7 +168,7 @@ function TeamAvatarFormControl() {
saveButton={{
onClick: handleSave,
disabled: false,
- isLoading: updateTeamAvatarMutation.isLoading,
+ isLoading: updateTeamAvatarMutation.isPending,
}}
noPermissionText={undefined} // TODO
errorText={undefined}
@@ -250,7 +250,7 @@ export function LeaveTeamCard(props: {
description={description}
buttonLabel={title}
buttonOnClick={handleLeave}
- isLoading={leaveTeam.isLoading}
+ isLoading={leaveTeam.isPending}
confirmationDialog={{
title: `Are you sure you want to leave team "${props.teamName}" ?`,
description:
@@ -311,7 +311,7 @@ export function DeleteTeamCard(props: {
description={description}
buttonLabel={title}
buttonOnClick={handleDelete}
- isLoading={deleteTeam.isLoading}
+ isLoading={deleteTeam.isPending}
confirmationDialog={{
title: `Are you sure you want to delete team "${props.teamName}" ?`,
description: description,
diff --git a/apps/dashboard/src/app/team/components/TeamHeader/TeamSelectionUI.tsx b/apps/dashboard/src/app/team/components/TeamHeader/TeamSelectionUI.tsx
index 07e499555..6ac4a697f 100644
--- a/apps/dashboard/src/app/team/components/TeamHeader/TeamSelectionUI.tsx
+++ b/apps/dashboard/src/app/team/components/TeamHeader/TeamSelectionUI.tsx
@@ -31,9 +31,7 @@ export function TeamSelectionUI(props: {
value={searchTeamTerm}
onValueChange={setSearchTeamTerm}
/>
-
-
-
{/* TODO - what do we do on this button click? */}
{/* Bottom */}
{teamPlan && teamPlan !== "pro" && (
diff --git a/apps/dashboard/src/components/app-layouts/app.tsx b/apps/dashboard/src/components/app-layouts/app.tsx
index 469740db2..3238db6b9 100644
--- a/apps/dashboard/src/components/app-layouts/app.tsx
+++ b/apps/dashboard/src/components/app-layouts/app.tsx
@@ -7,7 +7,7 @@ import { CustomConnectWallet } from "@3rdweb-sdk/react/components/connect-wallet
import { Flex, SimpleGrid } from "@chakra-ui/react";
import {
type DehydratedState,
- Hydrate,
+ HydrationBoundary,
QueryClient,
QueryClientProvider,
} from "@tanstack/react-query";
@@ -38,7 +38,7 @@ interface AppLayoutProps extends AppShellProps {
export const AppLayout: ComponentWithChildren
= (props) => {
// has to be constructed in here because it may otherwise share state between SSR'd pages
- const [queryClient] = useState(() => new QueryClient());
+ const [queryClient] = useState(() => new QueryClient({}));
// will be deleted as part of: https://github.com/thirdweb-dev/dashboard/pull/2648
// eslint-disable-next-line no-restricted-syntax
@@ -54,7 +54,7 @@ export const AppLayout: ComponentWithChildren = (props) => {
return (
-
+
@@ -74,7 +74,7 @@ export const AppLayout: ComponentWithChildren = (props) => {
-
+
);
};
diff --git a/apps/dashboard/src/components/buttons/MismatchButton.tsx b/apps/dashboard/src/components/buttons/MismatchButton.tsx
index dc4194738..cedb37f7b 100644
--- a/apps/dashboard/src/components/buttons/MismatchButton.tsx
+++ b/apps/dashboard/src/components/buttons/MismatchButton.tsx
@@ -337,7 +337,6 @@ function NoFundsDialogContent(props: {
)}
-
{/* Footer */}