Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
hmalik88 committed Sep 6, 2024
1 parent 6f1a996 commit 2b94344
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/components/app/confirm/info/row/url.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ export type ConfirmInfoRowUrlProps = {
export const ConfirmInfoRowUrl = ({ url }: ConfirmInfoRowUrlProps) => {
let urlObject;
const [isModalOpen, setIsModalOpen] = useState(false);
const handleOpenModal = useCallback(
const handlePillClick = useCallback(
() => setIsModalOpen(true),
[setIsModalOpen],
);
const handleCloseModal = useCallback(
const handleModalClose = useCallback(
() => setIsModalOpen(false),
[setIsModalOpen],
);

if (isSnapId(url)) {
return (
<>
<SnapAuthorshipPill snapId={url} onClick={handleOpenModal} />
<SnapAuthorshipPill snapId={url} onClick={handlePillClick} />
<SnapMetadataModal
snapId={url}
isOpen={isModalOpen}
onClose={handleCloseModal}
onClose={handleModalClose}
/>
</>
);
Expand Down

0 comments on commit 2b94344

Please sign in to comment.