Skip to content

Commit

Permalink
update: handlde query
Browse files Browse the repository at this point in the history
  • Loading branch information
HoangVD2 committed Mar 14, 2024
1 parent 5428403 commit c341a3e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 45 deletions.
6 changes: 1 addition & 5 deletions components/AddressCheckV2.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import LoadingIcon from "./LoadingIcon";
import PlayIcon from "./PlayIcon";

Expand Down Expand Up @@ -50,10 +50,6 @@ export default function AddressCheckV2() {
});
};

useEffect(() => {
fetchAddressCheckV2();
}, []);

return (
<>
<div className="flex justify-center">
Expand Down
6 changes: 1 addition & 5 deletions components/BridgeableTokens.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import LoadingIcon from "./LoadingIcon";
import PlayIcon from "./PlayIcon";

Expand Down Expand Up @@ -52,10 +52,6 @@ export default function BridgeableTokens() {
});
};

useEffect(() => {
fetchBridgeableTokens();
}, []);

return (
<>
<div className="flex justify-center">
Expand Down
6 changes: 1 addition & 5 deletions components/ChainV2GraphQL.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import LoadingIcon from "./LoadingIcon";
import PlayIcon from "./PlayIcon";

Expand Down Expand Up @@ -50,10 +50,6 @@ export default function ChainV2GraphQL() {
});
};

useEffect(() => {
fetchChainV2();
}, []);

return (
<>
<div className="flex justify-center">
Expand Down
6 changes: 1 addition & 5 deletions components/ChainsV2.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import LoadingIcon from "./LoadingIcon";
import PlayIcon from "./PlayIcon";

Expand All @@ -23,10 +23,6 @@ export default function ChainsV2() {
});
};

useEffect(() => {
fetchChainsV2();
}, []);

return (
<>
<div className="flex justify-center">
Expand Down
6 changes: 1 addition & 5 deletions components/ChainsV2GraphQL.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import LoadingIcon from "./LoadingIcon";
import PlayIcon from "./PlayIcon";

Expand Down Expand Up @@ -40,10 +40,6 @@ export default function ChainsV2GraphQL() {
});
};

useEffect(() => {
fetchChainsV2();
}, []);

return (
<>
<div className="flex justify-center">
Expand Down
6 changes: 1 addition & 5 deletions components/DailyVolume.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import LoadingIcon from "./LoadingIcon";
import PlayIcon from "./PlayIcon";
import moment from "moment";
Expand Down Expand Up @@ -47,10 +47,6 @@ export default function DailyVolume() {
});
};

useEffect(() => {
fetchDailyVolume();
}, []);

return (
<>
<div className="flex justify-center">
Expand Down
6 changes: 1 addition & 5 deletions components/RouteV2.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import LoadingIcon from "./LoadingIcon";
import PlayIcon from "./PlayIcon";

Expand Down Expand Up @@ -95,10 +95,6 @@ export default function RouteV2() {
});
};

useEffect(() => {
fetchRouteV2();
}, []);

return (
<>
<div className="flex justify-center">
Expand Down
6 changes: 1 addition & 5 deletions components/TokenV2.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import LoadingIcon from "./LoadingIcon";
import PlayIcon from "./PlayIcon";

Expand Down Expand Up @@ -53,10 +53,6 @@ export default function TokenV2() {
});
};

useEffect(() => {
fetchTokenV2();
}, []);

return (
<>
<div className="flex justify-center">
Expand Down
6 changes: 1 addition & 5 deletions components/TokensV2.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import LoadingIcon from "./LoadingIcon";
import PlayIcon from "./PlayIcon";

Expand Down Expand Up @@ -53,10 +53,6 @@ export default function TokensV2() {
});
};

useEffect(() => {
fetchTokensV2();
}, []);

return (
<>
<div className="flex justify-center">
Expand Down

0 comments on commit c341a3e

Please sign in to comment.