Hotfix: One more broken redirect (#1949)

* hotfix: tenanted path fix

* fix: actual fix

* fix: padding + spacing
This commit is contained in:
Matt Kaye
2025-07-03 19:52:01 -04:00
committed by GitHub
parent 3442c11106
commit d8d2e0b4d1
3 changed files with 9 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ import {
} from './accordion';
const stepsVariants = cva(
'ml-4 mb-12 border-l border-border pl-6 dark:border-border [counter-reset:step] flex flex-col gap-12',
'ml-4 mb-12 border-l border-border pl-6 dark:border-border [counter-reset:step] flex flex-col gap-4',
);
interface StepProps {

View File

@@ -1,4 +1,4 @@
import api, { CreateTenantRequest, queries } from '@/lib/api';
import api, { CreateTenantRequest, queries, TenantVersion } from '@/lib/api';
import { useApiError } from '@/lib/hooks';
import { useMutation, useQuery } from '@tanstack/react-query';
import { useState } from 'react';
@@ -25,7 +25,12 @@ export default function CreateTenant() {
onSuccess: async (tenant) => {
setTenant(tenant);
await listMembershipsQuery.refetch();
window.location.href = `/onboarding/get-started?tenant=${tenant.metadata.id}`;
if (tenant.version === TenantVersion.V1) {
window.location.href = `/tenants/${tenant.metadata.id}/onboarding/get-started`;
} else {
window.location.href = `/onboarding/get-started?tenant=${tenant.metadata.id}`;
}
},
onError: handleApiError,
});

View File

@@ -33,7 +33,7 @@ export default function GetStarted() {
return (
<div className="flex flex-col items-center w-full h-full overflow-auto">
<div className="container mx-auto px-4 py-8 lg:px-8 lg:py-12 max-w-4xl">
<div className="container mx-auto px-4 lg:px-8 max-w-4xl">
<div className="flex flex-col justify-center space-y-4">
<div className="flex flex-row justify-between mt-10">
<h1 className="text-3xl font-bold">Quickstart</h1>