@@ -80,10 +80,11 @@ export const SubmitFinalEvaluationPage = ({
80
80
} , [ steps ] ) ;
81
81
82
82
useEffect ( ( ) => {
83
- if ( success ) {
83
+ if ( success && isModalOpen ) {
84
84
setReviewBody ( null ) ;
85
85
setIsModalOpen ( false ) ;
86
86
toast ( { status : "success" , description : "Your evaluations have been submitted" } ) ;
87
+ dispatch ( goToReviewApplicationsAction ( ) ) ;
87
88
}
88
89
if ( error ) {
89
90
setReviewBody ( null ) ;
@@ -113,58 +114,60 @@ export const SubmitFinalEvaluationPage = ({
113
114
allocationStartDate = { new Date ( ) }
114
115
allocationEndDate = { new Date ( ) }
115
116
/>
116
- < div className = "mx-auto flex max-w-[1440px]" >
117
- < div className = "flex flex-col gap-6 px-20 pt-6" >
118
- < div className = "flex flex-col gap-8" >
119
- < Button
120
- value = "Exit"
121
- icon = { < Icon type = { IconType . X } className = "fill-red-700" /> }
122
- className = "flex h-8 w-fit justify-start gap-2 bg-red-50 p-4 text-red-700"
123
- />
124
- < StatCardGroup stats = { statCardsProps || [ ] } justify = "center" />
125
- </ div >
126
- < div className = "flex flex-col gap-8" >
127
- < div className = "flex flex-col gap-4" >
128
- < div className = "font-mono text-2xl font-medium leading-loose text-black" >
129
- Review applications
130
- </ div >
131
- < div className = "font-mono text-base font-normal leading-7 text-grey-900" >
132
- Evaluate projects here.
133
- </ div >
117
+ < div className = "mx-auto flex max-w-[1440px] flex-col gap-6 px-20" >
118
+ < div className = "flex justify-start" >
119
+ < Button
120
+ variant = "secondry"
121
+ icon = { < Icon type = { IconType . CHEVRON_LEFT } /> }
122
+ onClick = { ( ) =>
123
+ window . open ( `https://manager.gitcoin.co/#/chain/${ chainId } /round/${ poolId } ` )
124
+ }
125
+ value = "back to round manager"
126
+ />
127
+ </ div >
128
+ < StatCardGroup stats = { statCardsProps || [ ] } justify = "center" />
129
+
130
+ < div className = "flex flex-col gap-8" >
131
+ < div className = "flex flex-col gap-4" >
132
+ < div className = "font-mono text-2xl font-medium leading-loose text-black" >
133
+ Review applications
134
+ </ div >
135
+ < div className = "font-mono text-base font-normal leading-7 text-grey-900" >
136
+ Evaluate projects here.
134
137
</ div >
135
- < div className = "flex flex-col gap-2" >
136
- < div className = "pb-1" >
137
- < div className = "flex items-center justify-between pb-1" >
138
- < div className = "font-mono text-2xl font-medium leading-loose text-black" >
139
- { `Ready to submit (${ ReadyApplicationsToSubmit . length } )` }
140
- </ div >
141
- < div className = "flex gap-2" >
142
- < Button value = "Cancel" onClick = { handleCancel } />
143
- < Button
144
- value = { `Record (${ numberOfOnchainEvaluations } ) evaluations onchain` }
145
- disabled = { Object . keys ( projectEvaluations ) . length === 0 }
146
- onClick = { ( ) => {
147
- setIsModalOpen ( true ) ;
148
- } }
149
- />
150
- </ div >
138
+ </ div >
139
+ < div className = "flex flex-col gap-2" >
140
+ < div className = "pb-1" >
141
+ < div className = "flex items-center justify-between pb-1" >
142
+ < div className = "font-mono text-2xl font-medium leading-loose text-black" >
143
+ { `Ready to submit (${ ReadyApplicationsToSubmit . length } )` }
151
144
</ div >
152
- < div className = "h-px bg-grey-300" />
153
- </ div >
154
-
155
- < div >
156
- { ReadyApplicationsToSubmit . length === 0 ? (
157
- < div className = "font-mono text-base font-normal leading-7 text-grey-900" >
158
- Evaluations that are ready to be submitted onchain will appear here once
159
- reviewed. Manager supports multiple reviewers.
160
- </ div >
161
- ) : (
162
- < ProjectEvaluationList
163
- projects = { ReadyApplicationsToSubmit }
164
- action = { handleUpdateFinalEvaluations }
145
+ < div className = "flex gap-2" >
146
+ < Button value = "Cancel" onClick = { handleCancel } />
147
+ < Button
148
+ value = { `Record (${ numberOfOnchainEvaluations } ) evaluations onchain` }
149
+ disabled = { Object . keys ( projectEvaluations ) . length === 0 }
150
+ onClick = { ( ) => {
151
+ setIsModalOpen ( true ) ;
152
+ } }
165
153
/>
166
- ) }
154
+ </ div >
167
155
</ div >
156
+ < div className = "h-px bg-grey-300" />
157
+ </ div >
158
+
159
+ < div >
160
+ { ReadyApplicationsToSubmit . length === 0 ? (
161
+ < div className = "font-mono text-base font-normal leading-7 text-grey-900" >
162
+ Evaluations that are ready to be submitted onchain will appear here once reviewed.
163
+ Manager supports multiple reviewers.
164
+ </ div >
165
+ ) : (
166
+ < ProjectEvaluationList
167
+ projects = { ReadyApplicationsToSubmit }
168
+ action = { handleUpdateFinalEvaluations }
169
+ />
170
+ ) }
168
171
</ div >
169
172
</ div >
170
173
</ div >
0 commit comments