Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
0xaptosj committed Oct 20, 2023
1 parent f375438 commit aa75577
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
6 changes: 3 additions & 3 deletions frontend/src/app/home/Mint/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { useState } from "react";
import { useWallet } from "@aptos-labs/wallet-adapter-react";
import { PetImage, bodies, ears, faces } from "../Pet/Image";
import { Pet } from "../Pet";
import { ShuffleButton } from "../../../components/ShuffleButton";
import { ShuffleButton } from "@/components/ShuffleButton";
import {
NEXT_PUBLIC_BODY_OPTIONS,
NEXT_PUBLIC_CONTRACT_ADDRESS,
NEXT_PUBLIC_EAR_OPTIONS,
NEXT_PUBLIC_FACE_OPTIONS,
} from "../../../utils/env";
import { getAptosClient } from "../../../utils/aptosClient";
} from "@/utils/env";
import { getAptosClient } from "@/utils/aptosClient";

const aptosClient = getAptosClient();

Expand Down
6 changes: 3 additions & 3 deletions frontend/src/app/home/NotConnected.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
"use client";

import React, { useState } from "react";
import { useTypingEffect } from "../../utils/useTypingEffect";
import { useTypingEffect } from "@/utils/useTypingEffect";
import { Pet } from "./Pet";
import { PetImage, bodies, ears, faces } from "./Pet/Image";
import { ShuffleButton } from "../../components/ShuffleButton";
import { ShuffleButton } from "@/components/ShuffleButton";
import {
NEXT_PUBLIC_BODY_OPTIONS,
NEXT_PUBLIC_EAR_OPTIONS,
NEXT_PUBLIC_FACE_OPTIONS,
} from "../../utils/env";
} from "@/utils/env";

const defaultPet: Pet = {
name: "Unknown",
Expand Down
13 changes: 8 additions & 5 deletions frontend/src/app/home/Pet/Actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
import { Dispatch, SetStateAction, useState } from "react";
import { useWallet } from "@aptos-labs/wallet-adapter-react";
import { Pet } from ".";
import { getAptosClient } from "../../../utils/aptosClient";
import { NEXT_PUBLIC_CONTRACT_ADDRESS, NEXT_PUBLIC_ENERGY_CAP, NEXT_PUBLIC_ENERGY_DECREASE, NEXT_PUBLIC_ENERGY_INCREASE } from "../../../utils/env";
import { getAptosClient } from "@/utils/aptosClient";
import {
NEXT_PUBLIC_CONTRACT_ADDRESS,
NEXT_PUBLIC_ENERGY_CAP,
NEXT_PUBLIC_ENERGY_DECREASE,
NEXT_PUBLIC_ENERGY_INCREASE,
} from "@/utils/env";

const aptosClient = getAptosClient();

Expand Down Expand Up @@ -91,9 +96,7 @@ export function Actions({

setPet((pet) => {
if (!pet) return pet;
if (
pet.energy_points <= Number(NEXT_PUBLIC_ENERGY_DECREASE)
)
if (pet.energy_points <= Number(NEXT_PUBLIC_ENERGY_DECREASE))
return pet;

return {
Expand Down

0 comments on commit aa75577

Please sign in to comment.