diff --git a/frontend/public/android-chrome-144x144.png b/frontend/public/android-chrome-144x144.png new file mode 100644 index 0000000..900d0fd Binary files /dev/null and b/frontend/public/android-chrome-144x144.png differ diff --git a/frontend/public/apple-touch-icon.png b/frontend/public/apple-touch-icon.png new file mode 100644 index 0000000..3e8c773 Binary files /dev/null and b/frontend/public/apple-touch-icon.png differ diff --git a/frontend/public/browserconfig.xml b/frontend/public/browserconfig.xml new file mode 100644 index 0000000..ff8b345 --- /dev/null +++ b/frontend/public/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #fac0ea + + + diff --git a/frontend/public/favicon-16x16.png b/frontend/public/favicon-16x16.png new file mode 100644 index 0000000..8c0c1b4 Binary files /dev/null and b/frontend/public/favicon-16x16.png differ diff --git a/frontend/public/favicon-32x32.png b/frontend/public/favicon-32x32.png new file mode 100644 index 0000000..e8c481b Binary files /dev/null and b/frontend/public/favicon-32x32.png differ diff --git a/frontend/public/favicon.ico b/frontend/public/favicon.ico new file mode 100644 index 0000000..94b2890 Binary files /dev/null and b/frontend/public/favicon.ico differ diff --git a/frontend/public/icon3x.png b/frontend/public/icon3x.png new file mode 100644 index 0000000..4baef5a Binary files /dev/null and b/frontend/public/icon3x.png differ diff --git a/frontend/public/index.html b/frontend/public/index.html index ed47da3..068c3a1 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -2,11 +2,34 @@ - - - + + + + + + + + - Mech + + Mech — Inventories for NFTs + + + + + + + + + + + + + + + + diff --git a/frontend/public/logo192.png b/frontend/public/logo192.png deleted file mode 100755 index 8b0c8ef..0000000 Binary files a/frontend/public/logo192.png and /dev/null differ diff --git a/frontend/public/logo310.png b/frontend/public/logo310.png deleted file mode 100755 index 140ce8a..0000000 Binary files a/frontend/public/logo310.png and /dev/null differ diff --git a/frontend/public/mstile-150x150.png b/frontend/public/mstile-150x150.png new file mode 100644 index 0000000..41c7d18 Binary files /dev/null and b/frontend/public/mstile-150x150.png differ diff --git a/frontend/public/safari-pinned-tab.svg b/frontend/public/safari-pinned-tab.svg new file mode 100644 index 0000000..ccbff0b --- /dev/null +++ b/frontend/public/safari-pinned-tab.svg @@ -0,0 +1,158 @@ + + + + +Created by potrace 1.14, written by Peter Selinger 2001-2017 + + + + + + + + + + diff --git a/frontend/public/site.webmanifest b/frontend/public/site.webmanifest new file mode 100644 index 0000000..48a40bc --- /dev/null +++ b/frontend/public/site.webmanifest @@ -0,0 +1,14 @@ +{ + "name": "Mech", + "short_name": "Mech", + "icons": [ + { + "src": "/android-chrome-144x144.png", + "sizes": "144x144", + "type": "image/png" + } + ], + "theme_color": "#fac0ea", + "background_color": "#fac0ea", + "display": "standalone" +} diff --git a/frontend/public/webmeta.png b/frontend/public/webmeta.png new file mode 100644 index 0000000..d84d200 Binary files /dev/null and b/frontend/public/webmeta.png differ diff --git a/frontend/src/components/NFTGrid/index.tsx b/frontend/src/components/NFTGrid/index.tsx index 857c8de..a85ae03 100644 --- a/frontend/src/components/NFTGrid/index.tsx +++ b/frontend/src/components/NFTGrid/index.tsx @@ -17,7 +17,7 @@ interface Props { export const AccountNftGrid: React.FC = ({ address }) => { const chainId = useChainId() - const { data, isLoading, error } = useTokenBalances({ + const { data, isLoading } = useTokenBalances({ accountAddress: address, chainId, }) diff --git a/frontend/src/components/NFTItem/index.tsx b/frontend/src/components/NFTItem/index.tsx index ab78117..a15f465 100644 --- a/frontend/src/components/NFTItem/index.tsx +++ b/frontend/src/components/NFTItem/index.tsx @@ -1,5 +1,4 @@ import classes from "./NFTItem.module.css" -import { useState } from "react" import { shortenAddress } from "../../utils/shortenAddress" import copy from "copy-to-clipboard" import clsx from "clsx" @@ -25,8 +24,6 @@ const NFTItem: React.FC = ({ nft, chainId }) => { const mechAddress = calculateMechAddress(getNFTContext(nft), chainId) const operatorAddress = nft.owner_of - const [imageError, setImageError] = useState(false) - const { data, isLoading: mechBalancesLoading, diff --git a/frontend/src/hooks/useCollection.ts b/frontend/src/hooks/useCollection.ts index 7fa5cb7..e1ae6b6 100644 --- a/frontend/src/hooks/useCollection.ts +++ b/frontend/src/hooks/useCollection.ts @@ -1,5 +1,5 @@ -import { useInfiniteQuery, useQuery } from "@tanstack/react-query" -import { MoralisApiListResponse, MoralisNFT } from "../types/Token" +import { useInfiniteQuery } from "@tanstack/react-query" +import { MoralisApiListResponse } from "../types/Token" interface Props { tokenAddress: string diff --git a/frontend/src/routes/Collection/index.tsx b/frontend/src/routes/Collection/index.tsx index 9b5f02c..7afb51f 100644 --- a/frontend/src/routes/Collection/index.tsx +++ b/frontend/src/routes/Collection/index.tsx @@ -18,7 +18,7 @@ const Collection: React.FC = () => { } catch (error) { console.log(error) } - const { data, isLoading, error } = useCollectionMetadata({ + const { data, isLoading } = useCollectionMetadata({ tokenAddress: validAddress, chainId, })