Skip to content

Commit d39c15b

Browse files
Merge pull request #384 from scientist-softserv/383-update-disabled-request-message
383-update-disabled-request-message
2 parents d12029a + 0b92f70 commit d39c15b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pages/requests/new/[ware].js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { default as BsForm } from 'react-bootstrap/Form'
33
import Form from '@rjsf/core'
44
import validator from '@rjsf/validator-ajv8'
55
import { useRouter } from 'next/router'
6+
import { signIn } from 'next-auth/react'
67
import {
78
AdditionalInfo,
89
BlankRequestForm,
@@ -266,7 +267,8 @@ const SignInRequired = () => (
266267
<Notice
267268
addClass='mt-5'
268269
alert={{
269-
body: ['To proceed with making a request, please log in to your account.'],
270+
body: [<p key='signin-link'>To proceed with making a request, <a href='#' onClick={() => signIn
271+
(process.env.NEXT_PUBLIC_PROVIDER_NAME)}>please log in</a> to your account.</p>],
270272
title: 'Sign in required',
271273
variant: 'info'
272274
}}

0 commit comments

Comments
 (0)