@@ -111,7 +111,7 @@ export const useCreateStandardChangeRequest = () => {
111111 ) ;
112112} ;
113113
114- export interface Payload {
114+ export interface ChangeRequestPayload {
115115 submitterId : number ;
116116 wbsNum : WbsNumber ;
117117 projectLeadId : number ;
@@ -131,9 +131,9 @@ export interface Payload {
131131 * Custom React Hook to create an activation change request.
132132 */
133133export const useCreateActivationChangeRequest = ( ) => {
134- return useMutation < { message : string } , Error , Payload > (
134+ return useMutation < { message : string } , Error , ChangeRequestPayload > (
135135 [ 'change requests' , 'create' , 'activation' ] ,
136- async ( payload : Payload ) => {
136+ async ( payload : ChangeRequestPayload ) => {
137137 const { data } = await createActivationChangeRequest (
138138 payload . submitterId ,
139139 payload . wbsNum ,
@@ -151,9 +151,9 @@ export const useCreateActivationChangeRequest = () => {
151151 * Custom React Hook to create a stage gate change request.
152152 */
153153export const useCreateStageGateChangeRequest = ( ) => {
154- return useMutation < { message : string } , Error , Payload > (
154+ return useMutation < { message : string } , Error , ChangeRequestPayload > (
155155 [ 'change requests' , 'create' , 'stage gate' ] ,
156- async ( payload : Payload ) => {
156+ async ( payload : ChangeRequestPayload ) => {
157157 const { data } = await createStageGateChangeRequest ( payload . submitterId , payload . wbsNum , payload . confirmDone ) ;
158158 return data ;
159159 }
@@ -165,9 +165,9 @@ export const useCreateStageGateChangeRequest = () => {
165165 */
166166export const useCreateProposeSolution = ( ) => {
167167 const queryClient = useQueryClient ( ) ;
168- return useMutation < { message : string } , Error , Payload > (
168+ return useMutation < { message : string } , Error , ChangeRequestPayload > (
169169 [ 'change requests' , 'create' , 'propose solution' ] ,
170- async ( payload : Payload ) => {
170+ async ( payload : ChangeRequestPayload ) => {
171171 const { data } = await addProposedSolution (
172172 payload . submitterId ,
173173 payload . crId ,
0 commit comments