added navigation to new project on fork
This commit is contained in:
committed by
Kurt Hutten
parent
02463db741
commit
2d7fb91f92
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user