File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
web/src/components/wizard Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -6,18 +6,16 @@ import { useBranding } from "../../contexts/BrandingContext";
6
6
import { CheckCircle , ExternalLink } from "lucide-react" ;
7
7
8
8
const CompletionStep : React . FC = ( ) => {
9
- const { config } = useConfig ( ) ;
9
+ const { config, prototypeSettings } = useConfig ( ) ;
10
10
const { title } = useBranding ( ) ;
11
- const { prototypeSettings } = useConfig ( ) ;
12
- const themeColor = prototypeSettings . themeColor ;
13
11
14
12
return (
15
13
< div className = "space-y-6" >
16
14
< Card >
17
15
< div className = "flex flex-col items-center text-center py-6" >
18
16
< div className = "flex flex-col items-center justify-center mb-6" >
19
17
< 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 } } />
21
19
</ div >
22
20
< p className = "text-gray-600 mt-2" >
23
21
Visit the Admin Console to configure and install { title }
Original file line number Diff line number Diff line change @@ -13,11 +13,6 @@ const InstallationProgress: React.FC<InstallationProgressProps> = ({
13
13
themeColor,
14
14
status
15
15
} ) => {
16
- const displayMessage = ( ) => {
17
- if ( ! currentMessage ) return 'Preparing installation...' ;
18
- return status === 'Running' ? `${ currentMessage } ` : currentMessage ;
19
- } ;
20
-
21
16
return (
22
17
< div className = "mb-6" >
23
18
< div className = "w-full bg-gray-200 rounded-full h-2.5" >
@@ -30,7 +25,7 @@ const InstallationProgress: React.FC<InstallationProgressProps> = ({
30
25
/>
31
26
</ div >
32
27
< p className = "text-sm text-gray-500 mt-2" >
33
- { displayMessage ( ) }
28
+ { currentMessage || 'Preparing installation...' }
34
29
</ p >
35
30
</ div >
36
31
) ;
You can’t perform that action at this time.
0 commit comments