From b3da2c54f40ff4d11c80ebe2cbd1e290dcd2c0b2 Mon Sep 17 00:00:00 2001
From: Opey Adeyemi <60050089+Opeyem1a@users.noreply.github.com>
Date: Sun, 25 Aug 2024 21:54:06 -0600
Subject: [PATCH] refetch onboarding data after actions (#61)
---
.../(components)/SetupStepDetailCard.tsx | 3 +-
.../setup/(hooks)/useSetupSteps.tsx | 33 +++++++++++++++----
.../students/(hooks)/useStudents.tsx | 2 +-
.../use-import-student-gradebook-data.ts | 2 +-
4 files changed, 30 insertions(+), 10 deletions(-)
diff --git a/src/app/(app)/course/[courseId]/setup/(components)/SetupStepDetailCard.tsx b/src/app/(app)/course/[courseId]/setup/(components)/SetupStepDetailCard.tsx
index a40669a..229eb7a 100644
--- a/src/app/(app)/course/[courseId]/setup/(components)/SetupStepDetailCard.tsx
+++ b/src/app/(app)/course/[courseId]/setup/(components)/SetupStepDetailCard.tsx
@@ -7,6 +7,7 @@ import { Button } from "@/components/ui/button"
export interface Action {
onClick: () => void;
content: ReactNode;
+ loading: boolean;
}
export interface StepDefinition {
@@ -46,7 +47,7 @@ export const SetupStepDetailCard = ({ steps }: StepDetailCardProps) => {
{selectedStep.action && (
-