Skip to content

Commit

Permalink
Corrigindo erros
Browse files Browse the repository at this point in the history
  • Loading branch information
710lucas committed Dec 16, 2023
1 parent 9618ba5 commit ecbf993
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/pages/Group/GroupTabs/GroupFeed/GroupFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,28 +166,6 @@ export function GroupFeed(){

<div className="info">
<p className="feed-description">{post.content}</p>
{ !hasAvailableOption(OPTIONS_DEFINITION) || !canSeeMenu(post) ? null :
<DropdownMenu.Root>
<DropdownMenu.Trigger asChild>
<button className="options-button">
<i className="bi bi-three-dots-vertical" />
</button>
</DropdownMenu.Trigger>

<DropdownMenu.Content className="options" side="left">
{ OPTIONS_DEFINITION.map(def => {
if(def.text == "Editar publicação" && post.author?.id == groupContext?.loggedData.profile.id)
return renderOption(post, def)
else if(def.text == "Editar publicação")
return null
else
return renderOption(post, def)

}) }
<DropdownMenu.Arrow className="options-arrow" height=".5rem" width="1rem" />
</DropdownMenu.Content>
</DropdownMenu.Root>
}
</div>
</div>
)
Expand Down

0 comments on commit ecbf993

Please sign in to comment.