Skip to content

Commit 16cd32c

Browse files
samejr0ski
authored andcommitted
Separate hint from function
1 parent 020062e commit 16cd32c

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.settings

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.settings/route.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -584,12 +584,17 @@ export default function Page() {
584584
previewEnvironmentEnabled={isPreviewEnvironmentEnabled}
585585
/>
586586
) : (
587-
<GitHubConnectionPrompt
588-
gitHubAppInstallations={githubAppInstallations ?? []}
589-
organizationSlug={organization.slug}
590-
projectSlug={project.slug}
591-
environmentSlug={environment.slug}
592-
/>
587+
<div className="flex flex-col gap-2">
588+
<GitHubConnectionPrompt
589+
gitHubAppInstallations={githubAppInstallations ?? []}
590+
organizationSlug={organization.slug}
591+
projectSlug={project.slug}
592+
environmentSlug={environment.slug}
593+
/>
594+
<Hint>
595+
Connect your GitHub repository to automatically deploy your changes.
596+
</Hint>
597+
</div>
593598
)}
594599
</div>
595600
</div>
@@ -908,8 +913,6 @@ export function GitHubConnectionPrompt({
908913
</span>
909914
</div>
910915
)}
911-
912-
<Hint>Connect your GitHub repository to automatically deploy your changes.</Hint>
913916
</InputGroup>
914917
</Fieldset>
915918
);

0 commit comments

Comments
 (0)