Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update team creation text #282

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const App = () => {
<Route path='/:teamId' element={<TeamDetail />} />
<Route path='/:teamId/:shortName' element={<SharedBucketDetail />} />
<Route path='/opprett-team' element={<CreateTeamForm />} />
<Route path='/opprett-team/suksess' element={<TeamCreated />} />
<Route path='/opprett-team/kvittering' element={<TeamCreated />} />
<Route path='/not-found' element={<NotFound />} />
</Route>
</Routes>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/CreateTeamForm/CreateTeamForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const CreateTeamForm = () => {
)
.then((result: { success: boolean; message: string; body: O.Option<CreateTeamResponse> }) => {
if (result.success) {
navigate('/opprett-team/suksess', {
navigate('/opprett-team/kvittering', {
replace: true,
state: { kubenPullRequestUrl: O.getOrThrow(result.body).kubenPullRequestUrl },
})
Expand Down
7 changes: 4 additions & 3 deletions src/pages/CreateTeamForm/TeamCreated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ export interface TeamCreatedProps {
const TeamCreated = () => {
const { state }: { state: TeamCreatedProps } = useLocation()
const renderContent = () => (
<Dialog className={styles.warning} type={'info'} title={'Skjema ble innsendt'}>
<span>{`Opprettelse av team ble registert. Prosessen kan følges `}</span>
<Link href={state.kubenPullRequestUrl}>her</Link>
<Dialog className={styles.warning} type={'info'} title={'Skjema er sendt inn'}>
<span>{`Team Skyinfrastruktur vil gi beskjed til seksjonsleder når teamet er opprettet og klar til bruk. Søknaden er `}</span>
<Link href={state.kubenPullRequestUrl}>dokumentert på GitHub. </Link>
<span>{'Opprett en Kundeservice-sak hvis du ønsker å gjøre endringer før teamet er opprettet.'}</span>
</Dialog>
)

Expand Down