Skip to content

Commit

Permalink
refactor: Remove unused color-thief-node library import in NetworkBad…
Browse files Browse the repository at this point in the history
…ge.tsx
  • Loading branch information
daniel-vahn committed May 7, 2024
1 parent 9f9d2dd commit 80b3664
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
1 change: 1 addition & 0 deletions src/components/connectOverlay/NetworkBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const NetworkBadge: React.FC<Props> = ({
if (color === 'rgba(0,0,0, 0.5)') return;
console.log('Dominant color:', color);
backgroundColorSelected = color;
console.log('Background color:', backgroundColorSelected);
});
}, [icon]);

Expand Down
38 changes: 19 additions & 19 deletions src/components/connectors/SolanaConnectModal.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import React from 'react';
// import React from 'react';

import ConnectButton from '../buttons/ConnectButton';
import { useWalletModal } from '@solana/wallet-adapter-react-ui';
// import ConnectButton from '../buttons/ConnectButton';
// import { useWalletModal } from '@solana/wallet-adapter-react-ui';

type Props = {
title: string;
icon: string;
};
// type Props = {
// title: string;
// icon: string;
// };

const SolanaConnectModal: React.FC<Props> = ({ title, icon }) => {
const { setVisible } = useWalletModal();
// const SolanaConnectModal: React.FC<Props> = ({ title, icon }) => {
// const { setVisible } = useWalletModal();

const openModal = () => {
setVisible(true);
};
// const openModal = () => {
// setVisible(true);
// };

return (
<>
<ConnectButton title={title} icon={icon} callback={openModal} />
</>
);
};
// return (
// <>
// <ConnectButton title={title} icon={icon} callback={openModal} />
// </>
// );
// };

export default SolanaConnectModal;
// export default SolanaConnectModal;

0 comments on commit 80b3664

Please sign in to comment.