Skip to content

Add Public Profile Button #3554

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 34 additions & 16 deletions packages/builder/src/components/grants/Show.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Button, { ButtonVariants } from "../base/Button";
import PageNotFound from "../base/PageNotFound";
import Arrow from "../icons/Arrow";
import Pencil from "../icons/Pencil";
import LinkIcon from "../icons/LinkIcon";
import Details from "./Details";

function Project() {
Expand Down Expand Up @@ -89,24 +90,41 @@ function Project() {
Project Details
</h3>
</Link>
{props.id &&
props.owners &&
props.owners.includes(props.signerAddress!) && (
<Link
to={createEditPath()}
className="sm:w-auto mx-w-full ml-0"
<div className="flex gap-5">
<Link
to={`${process.env.REACT_APP_GRANT_EXPLORER}/#/projects/${props.id}`}
className="sm:w-auto mx-w-full ml-0"
target="_blank"
>
<Button
variant={ButtonVariants.primary}
styles={["sm:w-auto mx-w-full ml-0"]}
>
<Button
variant={ButtonVariants.outline}
styles={["sm:w-auto mx-w-full ml-0"]}
<i className="icon mt-1">
<LinkIcon color={colors["quaternary-text"]} />
</i>
&nbsp; Public Profile
</Button>
</Link>
{props.id &&
props.owners &&
props.owners.includes(props.signerAddress!) && (
<Link
to={createEditPath()}
className="sm:w-auto mx-w-full ml-0"
>
<i className="icon mt-1">
<Pencil color={colors["secondary-text"]} />
</i>
&nbsp; Edit
</Button>
</Link>
)}
<Button
variant={ButtonVariants.outline}
styles={["sm:w-auto mx-w-full ml-0"]}
>
<i className="icon mt-1">
<Pencil color={colors["secondary-text"]} />
</i>
&nbsp; Edit
</Button>
</Link>
)}
</div>
</div>
<Details
project={props.currentProject}
Expand Down
Loading