Skip to content

Commit

Permalink
ENG-3981 fix(portal): fix clickable area in claim row (#838)
Browse files Browse the repository at this point in the history
## Affected Packages

Apps

- [x] portal

Packages

- [ ] 1ui
- [ ] api
- [ ] protocol
- [ ] sdk

Tools

- [ ] tools

## Overview

Fixes the clickable area on ClaimRow.

## Screen Captures

If applicable, add screenshots or screen captures of your changes.

## Declaration

- [x] I hereby declare that I have abided by the rules and regulations
as outlined in the
[CONTRIBUTING.md](https://github.com/0xIntuition/intuition-ts/blob/main/CONTRIBUTING.md)
  • Loading branch information
Vitalsine85 authored Sep 12, 2024
1 parent 5d7f04a commit 5bec3bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/portal/app/components/claim/claim-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const ClaimRow = ({
const [isInteractiveElement, setIsInteractiveElement] = useState(false)
const linkRef = useRef<HTMLDivElement>(null)

const handleClick = (event: React.MouseEvent<HTMLDivElement>) => {
if (!isInteractiveElement && link && event.target === linkRef.current) {
const handleClick = () => {
if (!isInteractiveElement && link) {
navigate(link)
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/portal/app/components/list/positions-on-claim.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function PositionsOnClaim({
)}
updatedAt={position.updated_at}
link={`${PATHS.PROFILE}/${position.user?.wallet}`}
ipfsLink={`${BLOCK_EXPLORER_URL}/${position.user?.wallet}`}
ipfsLink={`${BLOCK_EXPLORER_URL}/address/${position.user?.wallet}`}
/>
</div>
))}
Expand Down

0 comments on commit 5bec3bf

Please sign in to comment.