Skip to content

Commit

Permalink
update console changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nxtCoder19 committed Oct 1, 2024
1 parent a5277bf commit 5863e10
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/apps/console/routes/_a+/new-team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down Expand Up @@ -58,7 +58,7 @@ export const loader = async (ctx: IExtRemixCtx) => {

const Cluster = () => {
const rootContext = useOutletContext<IAccountContext>();
const { cluster } = useLoaderData<typeof loader>();
const { cluster } = useLoaderData();
return <Outlet context={{ ...rootContext, cluster }} />;
};

Expand Down

0 comments on commit 5863e10

Please sign in to comment.