@@ -12,6 +12,7 @@ import Button, { ButtonVariants } from "../base/Button";
12
12
import PageNotFound from "../base/PageNotFound" ;
13
13
import Arrow from "../icons/Arrow" ;
14
14
import Pencil from "../icons/Pencil" ;
15
+ import LinkIcon from "../icons/LinkIcon" ;
15
16
import Details from "./Details" ;
16
17
17
18
function Project ( ) {
@@ -89,24 +90,41 @@ function Project() {
89
90
Project Details
90
91
</ h3 >
91
92
</ 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"
93
+ < div className = "flex gap-5" >
94
+ < Link
95
+ to = { `${ process . env . REACT_APP_GRANT_EXPLORER } /#/projects/${ props . id } ` }
96
+ className = "sm:w-auto mx-w-full ml-0"
97
+ target = "_blank"
98
+ >
99
+ < Button
100
+ variant = { ButtonVariants . primary }
101
+ styles = { [ "sm:w-auto mx-w-full ml-0" ] }
98
102
>
99
- < Button
100
- variant = { ButtonVariants . outline }
101
- styles = { [ "sm:w-auto mx-w-full ml-0" ] }
103
+ < i className = "icon mt-1" >
104
+ < LinkIcon color = { colors [ "quaternary-text" ] } />
105
+ </ i >
106
+ Public Profile
107
+ </ Button >
108
+ </ Link >
109
+ { props . id &&
110
+ props . owners &&
111
+ props . owners . includes ( props . signerAddress ! ) && (
112
+ < Link
113
+ to = { createEditPath ( ) }
114
+ className = "sm:w-auto mx-w-full ml-0"
102
115
>
103
- < i className = "icon mt-1" >
104
- < Pencil color = { colors [ "secondary-text" ] } />
105
- </ i >
106
- Edit
107
- </ Button >
108
- </ Link >
109
- ) }
116
+ < Button
117
+ variant = { ButtonVariants . outline }
118
+ styles = { [ "sm:w-auto mx-w-full ml-0" ] }
119
+ >
120
+ < i className = "icon mt-1" >
121
+ < Pencil color = { colors [ "secondary-text" ] } />
122
+ </ i >
123
+ Edit
124
+ </ Button >
125
+ </ Link >
126
+ ) }
127
+ </ div >
110
128
</ div >
111
129
< Details
112
130
project = { props . currentProject }
0 commit comments