Skip to content

Commit 39ed93b

Browse files
committed
adding button
1 parent e75d6b3 commit 39ed93b

File tree

1 file changed

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

1 file changed

+34
-16
lines changed

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

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import Button, { ButtonVariants } from "../base/Button";
1212
import PageNotFound from "../base/PageNotFound";
1313
import Arrow from "../icons/Arrow";
1414
import Pencil from "../icons/Pencil";
15+
import LinkIcon from "../icons/LinkIcon";
1516
import Details from "./Details";
1617

1718
function Project() {
@@ -89,24 +90,41 @@ function Project() {
8990
Project Details
9091
</h3>
9192
</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"]}
98102
>
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+
&nbsp; 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"
102115
>
103-
<i className="icon mt-1">
104-
<Pencil color={colors["secondary-text"]} />
105-
</i>
106-
&nbsp; 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+
&nbsp; Edit
124+
</Button>
125+
</Link>
126+
)}
127+
</div>
110128
</div>
111129
<Details
112130
project={props.currentProject}

0 commit comments

Comments
 (0)