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 all commits
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
46 changes: 30 additions & 16 deletions packages/builder/src/components/grants/Show.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,24 +89,38 @@ 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"]}
View 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