Skip to content

Commit

Permalink
added ipfs icon
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalikKarpuk committed Jul 9, 2024
1 parent 2035f71 commit b1f27a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Binary file added ui/assets/ipfs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions ui/components/molecules/modals/modalInfo/modalInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Image from "next/image";
import Image, { StaticImageData } from "next/image";
import defaultIcon from "../../../../assets/default.svg";
import ipfsIcon from "../../../../assets/ipfs.png";
import { Button } from "@/components/atoms/button";
import { Variant } from "@/components/atoms/button/types";
import classNames from "classnames";
Expand Down Expand Up @@ -45,12 +46,14 @@ const ModalInfo = ({ data }: ModalInfoProps): JSX.Element => {
url,
hiddenIcon,
action,
icon
}: {
header: string;
content: ReactNode;
url?: string;
hiddenIcon?: boolean;
action?: () => void;
icon?: StaticImageData;
}): JSX.Element => {
return (
<div className={classNames(style.infoItem, manropeSemiBold.className)}>
Expand All @@ -64,7 +67,7 @@ const ModalInfo = ({ data }: ModalInfoProps): JSX.Element => {
target="_blank"
className={style.bottomContentRightSide}
>
<Image src={defaultIcon} alt="" width={24} height={20} />
<Image src={icon || defaultIcon} alt="" width={24} height={20} />
</a>
)}
{action && (
Expand Down Expand Up @@ -112,6 +115,7 @@ const ModalInfo = ({ data }: ModalInfoProps): JSX.Element => {
header: "IPFS",
url: ipfs && `https://gateway.pinata.cloud/ipfs/${ipfs}`,
hiddenIcon: !ipfs,
icon: ipfsIcon,
content: (
<StaticEllipse
className={manropeSemiBold.className}
Expand Down
2 changes: 0 additions & 2 deletions ui/store/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,6 @@ const Store = ({
const initFunction = async (): Promise<void> => {
InitService.init();
WalletService.setAccountDataToStore = setWalletData;
const isWalletConnected = await WalletService.isWalletConnected();
console.log(isWalletConnected);

const bagStorage = localStorage.getItem("bag");
const accountStorage = localStorage.getItem("account");
Expand Down

0 comments on commit b1f27a5

Please sign in to comment.