Skip to content

Commit 89239c4

Browse files
authored
Add Public Profile Button (#3554)
* adding button * updated button copy
1 parent e75d6b3 commit 89239c4

File tree

1 file changed

+30
-16
lines changed
  • packages/builder/src/components/grants

1 file changed

+30
-16
lines changed

packages/builder/src/components/grants/Show.tsx

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -89,24 +89,38 @@ function Project() {
8989
Project Details
9090
</h3>
9191
</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"]}
98101
>
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"
102111
>
103-
<i className="icon mt-1">
104-
<Pencil color={colors["secondary-text"]} />
105-
</i>
106-
&nbsp; 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+
&nbsp; Edit
120+
</Button>
121+
</Link>
122+
)}
123+
</div>
110124
</div>
111125
<Details
112126
project={props.currentProject}

0 commit comments

Comments
 (0)