@@ -6,6 +6,7 @@ import { Button } from "@/primitives/Button";
6
6
import { Icon , IconType } from "@/primitives/Icon" ;
7
7
import { StatCardProps } from "@/primitives/StatCard" ;
8
8
import { StatCardGroup } from "@/primitives/StatCardGroup" ;
9
+ import { PoolType } from "@/types" ;
9
10
10
11
import { ApplicationsSection } from "~checker/components" ;
11
12
import { useGetApplicationsReviewPage } from "~checker/hooks" ;
@@ -15,10 +16,10 @@ import {
15
16
useCheckerContext ,
16
17
useCheckerDispatchContext ,
17
18
} from "~checker/store" ;
18
- import { getManagerUrl } from "~checker/utils" ;
19
+ import { getManagerUrl , getRoundLinkOnManager } from "~checker/utils" ;
19
20
import { PoolSummary } from "~pool" ;
20
21
21
- export const ReviewApplicationsPage = ( ) => {
22
+ export const ReviewApplicationsPage = ( { isStandalone } : { isStandalone : boolean } ) => {
22
23
const { categorizedReviews, statCardsProps, poolData, poolFetchState } =
23
24
useGetApplicationsReviewPage ( ) || { } ;
24
25
const { poolId, chainId } = useCheckerContext ( ) ;
@@ -51,7 +52,10 @@ export const ReviewApplicationsPage = () => {
51
52
} ;
52
53
53
54
const openRoundInManager = ( ) => {
54
- window . open ( `${ getManagerUrl ( chainId ) } /#/chain/${ chainId } /round/${ poolId } ` , "_blank" ) ;
55
+ window . open (
56
+ getRoundLinkOnManager ( chainId , poolId , poolData ?. strategyName as PoolType ) ,
57
+ "_blank" ,
58
+ ) ;
55
59
} ;
56
60
57
61
const openCheckerApplicationEvaluations = ( projectId : string ) => {
@@ -63,27 +67,31 @@ export const ReviewApplicationsPage = () => {
63
67
64
68
return (
65
69
< div className = "flex flex-col gap-6 " >
66
- < PoolSummary
67
- isLoading = { isLoading }
68
- chainId = { chainId }
69
- poolId = { poolId }
70
- programId = { poolData ?. project . id as string }
71
- strategyName = { poolData ?. strategyName }
72
- name = { poolData ?. roundMetadata ?. name }
73
- applicationsStartTime = { poolData ?. applicationsStartTime }
74
- applicationsEndTime = { poolData ?. applicationsEndTime }
75
- donationsStartTime = { poolData ?. donationsStartTime }
76
- donationsEndTime = { poolData ?. donationsEndTime }
77
- />
70
+ { isStandalone && (
71
+ < PoolSummary
72
+ isLoading = { isLoading }
73
+ chainId = { chainId }
74
+ poolId = { poolId }
75
+ programId = { poolData ?. project . id as string }
76
+ strategyName = { poolData ?. strategyName }
77
+ name = { poolData ?. roundMetadata ?. name }
78
+ applicationsStartTime = { poolData ?. applicationsStartTime }
79
+ applicationsEndTime = { poolData ?. applicationsEndTime }
80
+ donationsStartTime = { poolData ?. donationsStartTime }
81
+ donationsEndTime = { poolData ?. donationsEndTime }
82
+ />
83
+ ) }
78
84
< div className = "mx-auto flex max-w-[1440px] flex-col gap-6 px-20" >
79
- < div className = "flex justify-start" >
80
- < Button
81
- variant = "secondry"
82
- icon = { < Icon type = { IconType . CHEVRON_LEFT } /> }
83
- onClick = { openRoundInManager }
84
- value = "back to round manager"
85
- />
86
- </ div >
85
+ { isStandalone && (
86
+ < div className = "flex justify-start" >
87
+ < Button
88
+ variant = "secondry"
89
+ icon = { < Icon type = { IconType . CHEVRON_LEFT } /> }
90
+ onClick = { openRoundInManager }
91
+ value = "back to round manager"
92
+ />
93
+ </ div >
94
+ ) }
87
95
< StatCardGroup stats = { statCardsProps as StatCardProps [ ] } justify = "center" />
88
96
< div className = "flex flex-col gap-8" >
89
97
< div className = "flex flex-col gap-4" >
0 commit comments