diff --git a/src/apps/console/routes/_a+/new-team.tsx b/src/apps/console/routes/_a+/new-team.tsx index 5c7fc2691..b82d39081 100644 --- a/src/apps/console/routes/_a+/new-team.tsx +++ b/src/apps/console/routes/_a+/new-team.tsx @@ -74,10 +74,10 @@ const NewAccount = () => { if (_errors) { throw _errors[0]; } - const { errors: e } = await api.setupDefaultEnvironment({}); - if (e) { - throw e[0]; - } + // const { errors: e } = await api.setupDefaultEnvironment({}); + // if (e) { + // throw e[0]; + // } toast.success('account created'); // navigate(`/onboarding/${v.name}/attach-new-cluster`); navigate(`/${v.name}/environments`); diff --git a/src/apps/console/routes/_main+/$account+/infra+/$cluster+/_layout.tsx b/src/apps/console/routes/_main+/$account+/infra+/$cluster+/_layout.tsx index c21006559..b340e8756 100644 --- a/src/apps/console/routes/_main+/$account+/infra+/$cluster+/_layout.tsx +++ b/src/apps/console/routes/_main+/$account+/infra+/$cluster+/_layout.tsx @@ -6,9 +6,9 @@ import { useOutletContext, useParams, } from '@remix-run/react'; -import withContext from '~/root/lib/app-setup/with-contxt'; -import { IExtRemixCtx } from '~/root/lib/types/common'; import { BrandLogo } from '~/components/branding/brand-logo'; +import Breadcrum from '~/console/components/breadcrum'; +import { CommonTabs } from '~/console/components/common-navbar-tabs'; import { ChevronRight, Cpu, @@ -17,20 +17,20 @@ import { GearSix, HouseLine, } from '~/console/components/icons'; +import LogoWrapper from '~/console/components/logo-wrapper'; import { ICluster, IClusters, } from '~/console/server/gql/queries/cluster-queries'; -import { CommonTabs } from '~/console/components/common-navbar-tabs'; +import { GQLServerHandler } from '~/console/server/gql/saved-queries'; import { ExtractNodeType, parseName } from '~/console/server/r-utils/common'; -import Breadcrum from '~/console/components/breadcrum'; -import LogoWrapper from '~/console/components/logo-wrapper'; import { ensureAccountSet, ensureClusterSet, } from '~/console/server/utils/auth-utils'; -import { GQLServerHandler } from '~/console/server/gql/saved-queries'; import { BreadcrumSlash } from '~/console/utils/commons'; +import withContext from '~/root/lib/app-setup/with-contxt'; +import { IExtRemixCtx } from '~/root/lib/types/common'; import { IAccountContext } from '../../_layout'; export interface IClusterContext extends IAccountContext { @@ -58,7 +58,7 @@ export const loader = async (ctx: IExtRemixCtx) => { const Cluster = () => { const rootContext = useOutletContext(); - const { cluster } = useLoaderData(); + const { cluster } = useLoaderData(); return ; };