Skip to content

Commit cb50122

Browse files
committed
fixes
1 parent 6f80ead commit cb50122

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

web/src/components/wizard/CompletionStep.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,16 @@ import { useBranding } from "../../contexts/BrandingContext";
66
import { CheckCircle, ExternalLink } from "lucide-react";
77

88
const CompletionStep: React.FC = () => {
9-
const { config } = useConfig();
9+
const { config, prototypeSettings } = useConfig();
1010
const { title } = useBranding();
11-
const { prototypeSettings } = useConfig();
12-
const themeColor = prototypeSettings.themeColor;
1311

1412
return (
1513
<div className="space-y-6">
1614
<Card>
1715
<div className="flex flex-col items-center text-center py-6">
1816
<div className="flex flex-col items-center justify-center mb-6">
1917
<div className="w-16 h-16 rounded-full flex items-center justify-center mb-4">
20-
<CheckCircle className="w-10 h-10" style={{ color: themeColor }} />
18+
<CheckCircle className="w-10 h-10" style={{ color: prototypeSettings.themeColor }} />
2119
</div>
2220
<p className="text-gray-600 mt-2">
2321
Visit the Admin Console to configure and install {title}

web/src/components/wizard/installation/InstallationProgress.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ const InstallationProgress: React.FC<InstallationProgressProps> = ({
1313
themeColor,
1414
status
1515
}) => {
16-
const displayMessage = () => {
17-
if (!currentMessage) return 'Preparing installation...';
18-
return status === 'Running' ? `${currentMessage}` : currentMessage;
19-
};
20-
2116
return (
2217
<div className="mb-6">
2318
<div className="w-full bg-gray-200 rounded-full h-2.5">
@@ -30,7 +25,7 @@ const InstallationProgress: React.FC<InstallationProgressProps> = ({
3025
/>
3126
</div>
3227
<p className="text-sm text-gray-500 mt-2">
33-
{displayMessage()}
28+
{currentMessage || 'Preparing installation...'}
3429
</p>
3530
</div>
3631
);

0 commit comments

Comments
 (0)