Refactor site building workflow and context handling; update API response structure for improved clarity and consistency. Adjust frontend components to align with new data structure, including error handling and loading states.
This commit is contained in:
@@ -6,7 +6,7 @@ import type {
|
||||
} from "../../../../types/siteBuilder";
|
||||
import { Card } from "../../../../components/ui/card";
|
||||
import { Dropdown } from "../../../../components/ui/dropdown/Dropdown";
|
||||
import { Check } from "lucide-react";
|
||||
import { CheckLineIcon } from "../../../../icons";
|
||||
|
||||
const labelClass =
|
||||
"text-sm font-semibold text-gray-700 dark:text-white/80 mb-2 inline-block";
|
||||
@@ -197,7 +197,7 @@ export function StyleStep({
|
||||
</span>
|
||||
)}
|
||||
</span>
|
||||
{isSelected && <Check className="h-4 w-4" />}
|
||||
{isSelected && <CheckLineIcon className="h-4 w-4" />}
|
||||
</button>
|
||||
);
|
||||
})
|
||||
@@ -312,7 +312,7 @@ export function StyleStep({
|
||||
</span>
|
||||
)}
|
||||
</span>
|
||||
{isSelected && <Check className="h-4 w-4" />}
|
||||
{isSelected && <CheckLineIcon className="h-4 w-4" />}
|
||||
</button>
|
||||
);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user