added navigation to new project on fork

This commit is contained in:
Frank Johnson
2021-09-26 23:37:57 -04:00
committed by Kurt Hutten
parent 02463db741
commit 2d7fb91f92
4 changed files with 41 additions and 16 deletions

View File

@@ -38,6 +38,8 @@ const ProjectProfile = ({
const hasPermissionToEdit =
currentUser?.sub === userProject.id || currentUser?.roles.includes('admin')
const project = userProject?.Project
console.log({ project })
const emotes = countEmotes(project?.Reaction)
const userEmotes = project?.userReactions.map(({ emote }) => emote)
useEffect(() => {
@@ -145,6 +147,9 @@ const ProjectProfile = ({
<KeyValue keyName="Updated on">
{new Date(project?.updatedAt).toDateString()}
</KeyValue>
{ project.forkedFrom && <KeyValue keyName="Forked from">
{ project.forkedFrom.title } by { project.forkedFrom.user.userName }
</KeyValue> }
</div>
<KeyValue keyName="Reactions">
<EmojiReaction