From 7e73f12c750228caec8110243c98cabb8fa47e84 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Fri, 30 Jul 2021 04:41:29 -0300 Subject: [PATCH] Move refactoring --- src/App.tsx | 2 +- src/special/{ => london}/BlockRecord.tsx | 6 +++--- src/special/{ => london}/Blocks.tsx | 4 ++-- src/special/{ => london}/Countdown.tsx | 0 src/special/{ => london}/London.tsx | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) rename src/special/{ => london}/BlockRecord.tsx (91%) rename src/special/{ => london}/Blocks.tsx (97%) rename src/special/{ => london}/Countdown.tsx (100%) rename src/special/{ => london}/London.tsx (88%) diff --git a/src/App.tsx b/src/App.tsx index b7f3620..4f1333d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,7 +5,7 @@ import Home from "./Home"; import Search from "./Search"; import Title from "./Title"; import ConnectionErrorPanel from "./ConnectionErrorPanel"; -import London from "./special/London"; +import London from "./special/london/London"; import Footer from "./Footer"; import { ConnectionStatus } from "./types"; import { RuntimeContext, useRuntime } from "./useRuntime"; diff --git a/src/special/BlockRecord.tsx b/src/special/london/BlockRecord.tsx similarity index 91% rename from src/special/BlockRecord.tsx rename to src/special/london/BlockRecord.tsx index da8ec3f..1b23e65 100644 --- a/src/special/BlockRecord.tsx +++ b/src/special/london/BlockRecord.tsx @@ -1,8 +1,8 @@ import { ethers } from "ethers"; import React from "react"; -import BlockLink from "../components/BlockLink"; -import TimestampAge from "../components/TimestampAge"; -import { ExtendedBlock } from "../useErigonHooks"; +import BlockLink from "../../components/BlockLink"; +import TimestampAge from "../../components/TimestampAge"; +import { ExtendedBlock } from "../../useErigonHooks"; const ELASTICITY_MULTIPLIER = 2; diff --git a/src/special/Blocks.tsx b/src/special/london/Blocks.tsx similarity index 97% rename from src/special/Blocks.tsx rename to src/special/london/Blocks.tsx index 188873b..c7f5bb5 100644 --- a/src/special/Blocks.tsx +++ b/src/special/london/Blocks.tsx @@ -11,8 +11,8 @@ import { faGasPump, } from "@fortawesome/free-solid-svg-icons"; import BlockRecord from "./BlockRecord"; -import { ExtendedBlock, readBlock } from "../useErigonHooks"; -import { RuntimeContext } from "../useRuntime"; +import { ExtendedBlock, readBlock } from "../../useErigonHooks"; +import { RuntimeContext } from "../../useRuntime"; const MAX_BLOCK_HISTORY = 20; diff --git a/src/special/Countdown.tsx b/src/special/london/Countdown.tsx similarity index 100% rename from src/special/Countdown.tsx rename to src/special/london/Countdown.tsx diff --git a/src/special/London.tsx b/src/special/london/London.tsx similarity index 88% rename from src/special/London.tsx rename to src/special/london/London.tsx index b4d211c..965d05c 100644 --- a/src/special/London.tsx +++ b/src/special/london/London.tsx @@ -1,6 +1,6 @@ import React, { useContext } from "react"; -import { useLatestBlock } from "../useLatestBlock"; -import { RuntimeContext } from "../useRuntime"; +import { useLatestBlock } from "../../useLatestBlock"; +import { RuntimeContext } from "../../useRuntime"; import Countdown from "./Countdown"; import Blocks from "./Blocks";