fix: unwanted go back button in onboarding step 2 (#2714)

This commit is contained in:
Lakhan Baheti 2023-11-08 17:53:06 +05:30 committed by GitHub
parent 5a3bac998e
commit 6ebee05951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,9 +212,11 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
<Button variant="primary" type="submit" size="md" disabled={!isValid} loading={isSubmitting}> <Button variant="primary" type="submit" size="md" disabled={!isValid} loading={isSubmitting}>
{isSubmitting ? primaryButtonText.loading : primaryButtonText.default} {isSubmitting ? primaryButtonText.loading : primaryButtonText.default}
</Button> </Button>
<Button variant="neutral-primary" type="button" size="md" onClick={() => router.back()}> {!secondaryButton && (
Go back <Button variant="neutral-primary" type="button" size="md" onClick={() => router.back()}>
</Button> Go back
</Button>
)}
</div> </div>
</form> </form>
); );