File tree Expand file tree Collapse file tree 1 file changed +30
-16
lines changed
packages/builder/src/components/grants Expand file tree Collapse file tree 1 file changed +30
-16
lines changed Original file line number Diff line number Diff line change @@ -89,24 +89,38 @@ function Project() {
89
89
Project Details
90
90
</ h3 >
91
91
</ Link >
92
- { props . id &&
93
- props . owners &&
94
- props . owners . includes ( props . signerAddress ! ) && (
95
- < Link
96
- to = { createEditPath ( ) }
97
- className = "sm:w-auto mx-w-full ml-0"
92
+ < div className = "flex gap-5" >
93
+ < Link
94
+ to = { `${ process . env . REACT_APP_GRANT_EXPLORER } /#/projects/${ props . id } ` }
95
+ className = "sm:w-auto mx-w-full ml-0"
96
+ target = "_blank"
97
+ >
98
+ < Button
99
+ variant = { ButtonVariants . primary }
100
+ styles = { [ "sm:w-auto mx-w-full ml-0" ] }
98
101
>
99
- < Button
100
- variant = { ButtonVariants . outline }
101
- styles = { [ "sm:w-auto mx-w-full ml-0" ] }
102
+ View Public Profile
103
+ </ Button >
104
+ </ Link >
105
+ { props . id &&
106
+ props . owners &&
107
+ props . owners . includes ( props . signerAddress ! ) && (
108
+ < Link
109
+ to = { createEditPath ( ) }
110
+ className = "sm:w-auto mx-w-full ml-0"
102
111
>
103
- < i className = "icon mt-1" >
104
- < Pencil color = { colors [ "secondary-text" ] } />
105
- </ i >
106
- Edit
107
- </ Button >
108
- </ Link >
109
- ) }
112
+ < Button
113
+ variant = { ButtonVariants . outline }
114
+ styles = { [ "sm:w-auto mx-w-full ml-0" ] }
115
+ >
116
+ < i className = "icon mt-1" >
117
+ < Pencil color = { colors [ "secondary-text" ] } />
118
+ </ i >
119
+ Edit
120
+ </ Button >
121
+ </ Link >
122
+ ) }
123
+ </ div >
110
124
</ div >
111
125
< Details
112
126
project = { props . currentProject }
You can’t perform that action at this time.
0 commit comments