From e9aa489c6de89de24094f197257252c189bd6df8 Mon Sep 17 00:00:00 2001 From: Jordan Acosta Date: Fri, 21 Jun 2024 15:18:04 -0700 Subject: [PATCH] refactor: group install status components together --- .../InstallStepper/{ => InstallStatusContent}/InstallButton.tsx | 1 + .../InstallStepper/{ => InstallStatusContent}/InstallStatus.tsx | 0 .../{InstallStatusContent.tsx => InstallStatusContent/index.tsx} | 0 3 files changed, 1 insertion(+) rename components/InstallStepper/{ => InstallStatusContent}/InstallButton.tsx (94%) rename components/InstallStepper/{ => InstallStatusContent}/InstallStatus.tsx (100%) rename components/InstallStepper/{InstallStatusContent.tsx => InstallStatusContent/index.tsx} (100%) diff --git a/components/InstallStepper/InstallButton.tsx b/components/InstallStepper/InstallStatusContent/InstallButton.tsx similarity index 94% rename from components/InstallStepper/InstallButton.tsx rename to components/InstallStepper/InstallStatusContent/InstallButton.tsx index e4cd491..531c27c 100644 --- a/components/InstallStepper/InstallButton.tsx +++ b/components/InstallStepper/InstallStatusContent/InstallButton.tsx @@ -1,6 +1,7 @@ import { Button } from "@material-tailwind/react"; export const InstallButton = ({ install }) => { + install.status = "provisioning"; const loading = install.status === "provisioning"; let label = "Create Install"; diff --git a/components/InstallStepper/InstallStatus.tsx b/components/InstallStepper/InstallStatusContent/InstallStatus.tsx similarity index 100% rename from components/InstallStepper/InstallStatus.tsx rename to components/InstallStepper/InstallStatusContent/InstallStatus.tsx diff --git a/components/InstallStepper/InstallStatusContent.tsx b/components/InstallStepper/InstallStatusContent/index.tsx similarity index 100% rename from components/InstallStepper/InstallStatusContent.tsx rename to components/InstallStepper/InstallStatusContent/index.tsx