Skip to content

Commit

Permalink
cleaning the code and fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchand-Nicolas committed Sep 16, 2023
1 parent 887bc2c commit 0d67a7a
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/UI/iconsComponents/icons/arrowRightIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FunctionComponent } from "react";
import React, { FunctionComponent } from "react";

const ArrowRightIcon: FunctionComponent<IconProps> = ({
width = 24,
Expand Down
2 changes: 1 addition & 1 deletion components/pages/home/homeControls.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FunctionComponent } from "react";
import React, { FunctionComponent } from "react";
import styles from "../../../styles/Home.module.css";

const HomeControls: FunctionComponent = () => {
Expand Down
2 changes: 1 addition & 1 deletion components/pages/home/questCategories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const QuestCategories: FunctionComponent<QuestCategoriesProps> = ({
const res: {
[key: string]: QuestCategory;
} = {};
for (let quest of quests) {
for (const quest of quests) {
const key = quest.category as string;
const value = res[key];
if (!value) {
Expand Down
2 changes: 1 addition & 1 deletion components/quests/nfts.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FunctionComponent } from "react";
import React, { FunctionComponent } from "react";
import styles from "../../styles/quests.module.css";

type NftsProps = {
Expand Down
2 changes: 1 addition & 1 deletion components/quests/questCategoryDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const QuestCategoryDetails: FunctionComponent<QuestCategoryDetailsProps> = ({
setMenu(
<QuestDetails
quest={quest}
setShowMenu={(_) => setMenu(null)}
setShowMenu={() => setMenu(null)}
/>
)
}
Expand Down
3 changes: 0 additions & 3 deletions components/quests/questDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { FunctionComponent, useEffect } from "react";
import { QuestDocument } from "../../types/backTypes";
import ScreenLayout from "./screenLayout";
import { useRouter } from "next/router";
import QuestMenu from "./questMenu";

type QuestDetailsProps = {
Expand All @@ -13,8 +12,6 @@ const QuestDetails: FunctionComponent<QuestDetailsProps> = ({
quest,
setShowMenu,
}) => {
const router = useRouter();

useEffect(() => {
const documentBody = document.querySelector("body");
if (!documentBody) return;
Expand Down
2 changes: 0 additions & 2 deletions components/quests/questMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import Task from "../../components/quests/task";
import Reward from "../../components/quests/reward";
import quests_nft_abi from "../../abi/quests_nft_abi.json";
import { useAccount, useProvider } from "@starknet-react/core";
import { useRouter } from "next/router";
import { hexToDecimal } from "../../utils/feltService";
import {
NFTItem,
Expand Down Expand Up @@ -53,7 +52,6 @@ const QuestMenu: FunctionComponent<QuestMenuProps> = ({
res,
errorMsg,
}) => {
const router = useRouter();
const { address } = useAccount();
const { provider } = useProvider();
const [tasks, setTasks] = useState<UserTask[]>([]);
Expand Down

0 comments on commit 0d67a7a

Please sign in to comment.