Skip to content

Commit

Permalink
fix: Review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
calvin-codecov committed Jan 17, 2025
1 parent 373cd4d commit 7e81bba
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
Binary file removed src/assets/onboarding/click_here_to_install.png
Binary file not shown.
Binary file modified src/assets/onboarding/org_list_install_app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/layouts/BaseLayout/BaseLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ function BaseLayout({ children }: React.PropsWithChildren) {
<Suspense>
<ErrorBoundary errorComponent={<EmptyErrorComponent />}>
<SilentNetworkErrorWrapper>
{(isFullExperience || isImpersonating) && (
{isFullExperience || isImpersonating ? (
<>
<GlobalTopBanners />
<Header hasRepoAccess={data?.hasRepoAccess} />
</>
)}
) : null}
</SilentNetworkErrorWrapper>
</ErrorBoundary>
</Suspense>
Expand All @@ -126,12 +126,12 @@ function BaseLayout({ children }: React.PropsWithChildren) {
</Suspense>

{/* Footer */}
{isFullExperience && (
{isFullExperience ? (
<>
<Footer />
<ToastNotifications />
</>
)}
) : null}
</RepoBreadcrumbProvider>
</>
)
Expand Down
3 changes: 2 additions & 1 deletion src/pages/OwnerPage/OnboardingOrg/OnboardingOrg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ function OnboardingOrg() {
<div className="flex items-center justify-center gap-6 py-8">
<div className="h-[107px] w-[169px]">
<img
src={orgListInstallApp}
alt="GitHub Organization Install List Example"
className="h-full object-cover"
src={orgListInstallApp}
/>
</div>
<div className="w-[350px] text-sm">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/OwnerPage/OwnerPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function OwnerPage() {
</SilentNetworkErrorWrapper>
</Suspense>
<div>
{showOnboardingContainer && <OnboardingOrg />}
{showOnboardingContainer ? <OnboardingOrg /> : null}
{ownerData?.isCurrentUserPartOfOrg && (
<Tabs owner={ownerData} provider={provider} />
)}
Expand Down
6 changes: 3 additions & 3 deletions src/shared/AppInstallModal/AppInstallModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clickHereToInstall from 'assets/onboarding/click_here_to_install.png'
import clickHereToInstall from 'assets/onboarding/org_list_install_app.png'
import Button from 'ui/Button'
import { CodeSnippet } from 'ui/CodeSnippet'
import Modal from 'ui/Modal'
Expand Down Expand Up @@ -29,11 +29,11 @@ function AppInstallModal({
You need to install Codecov app on your GitHub organization as an
admin.
</span>
<div className="mb-5 bg-ds-gray-primary px-6 ">
<div className="mb-5 bg-ds-gray-primary px-6">
<img
src={clickHereToInstall}
alt="click here to install screenshot"
className="mx-auto h-72 w-[508px] object-cover"
className="mx-auto h-72 w-[508px] object-contain"
/>
</div>
<span className="mb-2 text-sm">
Expand Down

0 comments on commit 7e81bba

Please sign in to comment.