Skip to content

Commit

Permalink
nit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha committed Oct 10, 2024
1 parent cb00c91 commit 3a42c57
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { SubjectType } from '@metamask/permission-controller';
import { useSelector } from 'react-redux';
import {
AlignItems,
BackgroundColor,
Expand All @@ -25,14 +24,10 @@ import {
} from '../../../component-library';
import { getURLHost } from '../../../../helpers/utils/util';
import { SnapIcon } from '../../../app/snaps/snap-icon';
import { getPermittedChainsForSelectedTab } from '../../../../selectors';

export const ConnectionListItem = ({ connection, onClick }) => {
const t = useI18nContext();
const isSnap = connection.subjectType === SubjectType.Snap;
const connectedNetworks = useSelector((state) =>
getPermittedChainsForSelectedTab(state, connection.origin),
);

return (
<Box
Expand Down

0 comments on commit 3a42c57

Please sign in to comment.