Skip to content

Commit

Permalink
fix(generate-test): icon
Browse files Browse the repository at this point in the history
  • Loading branch information
aliraza556 committed Oct 30, 2024
1 parent 9536a43 commit b96b9bf
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions src/components/Universe/Graph/UI/NodeControls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ export const NodeControls = memo(() => {
handleClose()
}}
>
<AddCircleIcon data-testid="AddCircleIcon" /> Add edge
<AddCircleIcon data-testid="AddCircleIcon" />
Add edge
</PopoverOption>
</>
) : (
Expand All @@ -250,15 +251,21 @@ export const NodeControls = memo(() => {
handleClose()
}}
>
<AddCircleIcon data-testid="AddCircleIcon" /> Generate Tests
<IconWrapper>
<AddCircleIcon data-testid="AddCircleIcon" />
</IconWrapper>
Generate Tests
</PopoverOption>
<PopoverOption
data-testid="add_comments"
onClick={() => {
handleClose()
}}
>
<DocumentIcon data-testid="DocumentIcon" /> Add Comments
<IconWrapper>
<DocumentIcon data-testid="DocumentIcon" />{' '}
</IconWrapper>
Add Comments
</PopoverOption>
<PopoverOption
data-testid="review_bugs"
Expand Down Expand Up @@ -350,6 +357,18 @@ const PopoverWrapper = styled(Popover)`
}
`

const IconWrapper = styled.div`
display: flex;
align-items: center;
justify-content: start;
svg {
margin-top: 1px;
width: 12px;
height: 12px;
}
`

const CreateTestButton = styled.div<ButtonProps>`
position: fixed;
top: 40px;
Expand Down

0 comments on commit b96b9bf

Please sign in to comment.