fix: hide cancel button on first-launch onboarding
Add isFirstLaunch check to cancel button visibility so it only shows when user is creating additional companies, not during initial setup.
This commit is contained in:
1 parent
0a0b2fdce4
commit
259c0a279d
1 file changed
+1
-1
@@ -201,7 +201,7 @@ export function CompanyOnboarding({
|
|||||||
|
|
||||||
<div className="min-h-0 overflow-y-auto border-l border-border bg-background">
|
<div className="min-h-0 overflow-y-auto border-l border-border bg-background">
|
||||||
<div className="relative flex min-h-full items-center px-6 py-10 md:px-10">
|
<div className="relative flex min-h-full items-center px-6 py-10 md:px-10">
|
||||||
{canCancel && onCancel ? (
|
{canCancel && onCancel && !isFirstLaunch ? (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={onCancel}
|
onClick={onCancel}
|
||||||
|
|||||||
Reference in new issue
Block a user