Skip to content

Commit

Permalink
fix: Correct the deactivated repo message
Browse files Browse the repository at this point in the history
  • Loading branch information
suejung-sentry committed Nov 9, 2024
1 parent 424f106 commit f8b8be3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('DeactivatedRepo', () => {
it('renders corresponding message', async () => {
render(<DeactivatedRepo />, { wrapper })

const message = await screen.findByText(/To reactivate the repo go to/)
const message = await screen.findByText(/To resume uploading to it/)
expect(message).toBeInTheDocument()
})
})
Expand Down
15 changes: 7 additions & 8 deletions src/pages/RepoPage/DeactivatedRepo/DeactivatedRepo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,19 @@ function DeactivatedRepo() {
className="mx-auto mb-8"
src={deactivatedRepo}
/>
<span className="text-3xl"> This repo has been deactivated </span>
<span className="text-3xl"> This repository has been deactivated </span>
<span className="text-base">
{isCurrentUserPartOfOrg ? (
<>
To reactivate the repo go to{' '}
To resume uploading to it, please activate the repository in{' '}
<A
to={{ pageName: 'settings' }}
to={{ pageName: 'configGeneral' }}
isExternal={false}
hook="link-to-settings"
hook="link-to-config-general"
>
Settings{' '}
</A>{' '}
or upload a coverage report and it will be automatically
re-activated.
Configuration
</A>
{'.'}
</>
) : (
'Contact an administrator of your git organization to grant write-permissions in your git-provider for this repository.'
Expand Down

0 comments on commit f8b8be3

Please sign in to comment.