Skip to content

Commit

Permalink
Gallery useTabs: removed unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Aug 24, 2023
1 parent 3e24dc7 commit 55828c6
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions src/refactor/ui/components/modals/gallery/useTabs.tsx
@@ -1,7 +1,5 @@
import { BigNumber } from 'ethers';
import React, { useEffect, useState } from 'react';
import { useEffect, useState } from 'react';
import { useAsyncFn } from 'react-use';
import { GalleryItem } from '../../../../../components/masa-interface/pages/gallery/galleryItem';
import { useMasaClient } from '../../../../masa-client';
import { useCustomSBTs } from '../../../../masa/use-custom-sbt';
import {
Expand All @@ -11,23 +9,6 @@ import {
TokenWithMetadata,
} from '../../../../masa';

export const handleRender = (SBT: {
metadata: GalleryMetadata;
tokenId: BigNumber;
tokenUri: string;
}) => {
const metadata = SBT?.metadata ?? SBT?.tokenUri ?? {};

return (
<GalleryItem
image={metadata.image}
title={metadata.name}
description={metadata.description}
key={metadata?.tokenURI ?? 'gallery-item'}
/>
);
};

export const useTabs = () => {
const { customSBTs, isLoading } = useCustomSBTs();
const { sdk: masa } = useMasaClient();
Expand Down

0 comments on commit 55828c6

Please sign in to comment.