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 4b5ba3e commit f375438
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 28 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/home/Connected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { useState, useEffect, useCallback } from "react";
import { Pet } from "./Pet";
import { useWallet } from "@aptos-labs/wallet-adapter-react";
import { Mint } from "./Mint";
import { NEXT_PUBLIC_CONTRACT_ADDRESS } from "../../utils/env";
import { getAptosClient } from "../../utils/aptosClient";
import { NEXT_PUBLIC_CONTRACT_ADDRESS } from "@/utils/env";
import { getAptosClient } from "@/utils/aptosClient";

const aptosClient = getAptosClient();

Expand Down
6 changes: 3 additions & 3 deletions frontend/src/app/home/Pet/Collection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import { useCallback, useState, useEffect } from "react";
import { useWallet } from "@aptos-labs/wallet-adapter-react";
import { padAddressIfNeeded } from "../../../utils/address";
import { getAptosClient } from "../../../utils/aptosClient";
import { NEXT_PUBLIC_CONTRACT_ADDRESS } from "../../../utils/env";
import { padAddressIfNeeded } from "@/utils/address";
import { getAptosClient } from "@/utils/aptosClient";
import { NEXT_PUBLIC_CONTRACT_ADDRESS } from "@/utils/env";

const aptosClient = getAptosClient();

Expand Down
6 changes: 3 additions & 3 deletions frontend/src/app/home/Pet/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import { AiFillSave } from "react-icons/ai";
import { FaCopy } from "react-icons/fa";
import { HealthBar } from "../../../components/HealthBar";
import { HealthBar } from "@/components/HealthBar";
import { Pet } from ".";
import { Dispatch, SetStateAction, useState } from "react";
import { useWallet } from "@aptos-labs/wallet-adapter-react";
import { NEXT_PUBLIC_CONTRACT_ADDRESS } from "../../../utils/env";
import { getAptosClient } from "../../../utils/aptosClient";
import { NEXT_PUBLIC_CONTRACT_ADDRESS } from "@/utils/env";
import { getAptosClient } from "@/utils/aptosClient";

export interface PetDetailsProps {
pet: Pet;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/home/Pet/Summary.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { useTypingEffect } from "../../../utils/useTypingEffect";
import { useTypingEffect } from "@/utils/useTypingEffect";
import { Pet } from ".";

export interface SummaryProps {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WalletProvider } from "../context/WalletProvider";
import { WalletProvider } from "@/context/WalletProvider";
import type { Metadata } from "next";
import localFont from "next/font/local";
import { PropsWithChildren } from "react";
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function Header() {

const WalletButtons = dynamic(
async () => {
const { WalletButtons } = await import("../components/WalletButtons");
const { WalletButtons } = await import("@/components/WalletButtons");
return { default: WalletButtons };
},
{
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/HealthBar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { range } from "../../utils/range";
import { range } from "@/utils/range";

export interface HealthBarProps {
totalHealth: number;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/WalletButtons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
isRedirectable,
WalletName,
} from "@aptos-labs/wallet-adapter-react";
import { cn } from "../../utils/styling";
import { cn } from "@/utils/styling";

const buttonStyles = "nes-btn is-primary";

Expand Down
22 changes: 7 additions & 15 deletions frontend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -22,15 +18,11 @@
{
"name": "next"
}
]
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}

0 comments on commit f375438

Please sign in to comment.