Skip to content

Commit

Permalink
Update ProgramFeedCard.component.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
sametaln committed Dec 16, 2024
1 parent 30a6ea9 commit 088b590
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions frontend/src/components/ProgramFeedCard.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,9 @@ function ProgramFeedCard({
},
}}
>
<Flex gap={2} width="full">
<Flex gap={2} width="full"
marginBottom={2}
>
<Tooltip
label={
user && program.trainer === user.username ? null : (
Expand Down Expand Up @@ -408,17 +410,22 @@ function ProgramFeedCard({
>
Start Practicing
</Button>
<Button
variant='outline'
colorScheme='purple'
leftIcon={<ChatIcon />}
onClick={() => onFeedbackOpen()}
>
Give Feedback
</Button>
</Flex>
)}
</Flex>
{
isUserJoined && user && program.trainer !== user.username && (
<Button
variant='outline'
colorScheme='purple'
leftIcon={<ChatIcon />}
onClick={() => onFeedbackOpen()}
width={"full"}
>
Give Feedback
</Button>
)
}
</CardFooter>
</Card>
<FeedbackModal
Expand Down

0 comments on commit 088b590

Please sign in to comment.