mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Render InitSuccess above others
This commit is contained in:
1 file changed
+10
-10
@@ -64,6 +64,16 @@ export function GitSyncSteps({ projectId, onClose }: GitSyncStepsProps) {
|
||||
setCurrentStep('init-success');
|
||||
};
|
||||
|
||||
if (currentStep === 'init-success') {
|
||||
return (
|
||||
<InitSuccessStep
|
||||
projectId={projectId}
|
||||
onChangeStep={setCurrentStep}
|
||||
onClose={onClose}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
// Don't render anything while loading git status
|
||||
if (isGitStatusLoading) {
|
||||
return (
|
||||
@@ -109,15 +119,5 @@ export function GitSyncSteps({ projectId, onClose }: GitSyncStepsProps) {
|
||||
);
|
||||
}
|
||||
|
||||
if (currentStep === 'init-success') {
|
||||
return (
|
||||
<InitSuccessStep
|
||||
projectId={projectId}
|
||||
onChangeStep={setCurrentStep}
|
||||
onClose={onClose}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
Reference in new issue
Block a user