Skip to content

Commit

Permalink
fix images and svg
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPereira committed Jan 18, 2024
1 parent 304547f commit a470ecc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const fetcher = (url: string) => fetch(url).then(res => res.json());
* @TODO resolve ens name using mainnet contract and plug into sendRequest writeAsync method
*/
const Home: NextPage = () => {
const [imgSrc, setImgSrc] = useState<string>("/pixel-art.png");
const [imgSrc, setImgSrc] = useState<string>("/pixel-art.jpg");
const [stepsCompleted, setStepsCompleted] = useState(0);

const { address } = useAccount();
Expand Down Expand Up @@ -82,13 +82,13 @@ const Home: NextPage = () => {
const { data: buidlCount } = useScaffoldContractRead({
contractName: "OnlyBuidlorsNft",
functionName: "getBuidlCount",
args: [address || ""],
args: [address || "0x000"],
});

const { data: hasMinted } = useScaffoldContractRead({
contractName: "OnlyBuidlorsNft",
functionName: "getHasMinted",
args: [address || ""],
args: [address || "0x000"],
});

const { data: onlyBuildorsNftContract } = useDeployedContractInfo("OnlyBuidlorsNft");
Expand Down Expand Up @@ -122,7 +122,7 @@ const Home: NextPage = () => {
// How to track when chainlink node has responsed to the request?
useEffect(() => {
if (hasMinted) {
setImgSrc("/pixel-art.png"); // CHANGE TO SHOWING THE NFT IMAGE
setImgSrc("/pixel-art.jpg"); // CHANGE TO SHOWING THE NFT IMAGE
setStepsCompleted(3);
} else if (buidlCount && buidlCount > 0n) {
setImgSrc("/step-3.jpg");
Expand All @@ -132,7 +132,7 @@ const Home: NextPage = () => {
} else if (requestTxIsMining || requestTxIsLoading) {
setImgSrc("/step-1.jpg");
} else {
setImgSrc("/pixel-art.png");
setImgSrc("/pixel-art.jpg");
}
}, [hasMinted, buidlCount, requestTxIsMining, requestTxIsLoading, stepsCompleted]);

Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/public/bg-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/nextjs/public/pixel-art.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed packages/nextjs/public/pixel-art.png
Binary file not shown.

0 comments on commit a470ecc

Please sign in to comment.