mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-30 13:19:44 -06:00
Hotfix: One more broken redirect (#1949)
* hotfix: tenanted path fix * fix: actual fix * fix: padding + spacing
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user