From ab7ba5aaa56c7ef484d48970026ed37a26d0fa61 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 20 Feb 2021 17:44:24 +0200 Subject: [PATCH] remove scenes folder --- {scenes => components}/plus/PlusVotingHistoryPage.tsx | 2 +- pages/plus/history/[[...slug]].tsx | 4 ++-- {scenes/plus => services}/plusService.ts | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename {scenes => components}/plus/PlusVotingHistoryPage.tsx (97%) rename {scenes/plus => services}/plusService.ts (100%) diff --git a/scenes/plus/PlusVotingHistoryPage.tsx b/components/plus/PlusVotingHistoryPage.tsx similarity index 97% rename from scenes/plus/PlusVotingHistoryPage.tsx rename to components/plus/PlusVotingHistoryPage.tsx index 77152201d..aafceed76 100644 --- a/scenes/plus/PlusVotingHistoryPage.tsx +++ b/components/plus/PlusVotingHistoryPage.tsx @@ -12,7 +12,7 @@ import { import UserAvatar from "components/common/UserAvatar"; import { FiCheck } from "react-icons/fi"; import { formatUsername } from "utils/strings"; -import { GetVotingSummariesByMonthAndTierData } from "./plusService"; +import { GetVotingSummariesByMonthAndTierData } from "../../services/plusService"; export interface PlusVotingHistoryPageProps { summaries: GetVotingSummariesByMonthAndTierData; diff --git a/pages/plus/history/[[...slug]].tsx b/pages/plus/history/[[...slug]].tsx index 315c40c69..04ef91339 100644 --- a/pages/plus/history/[[...slug]].tsx +++ b/pages/plus/history/[[...slug]].tsx @@ -1,8 +1,8 @@ import { GetStaticPaths, GetStaticProps } from "next"; import PlusVotingHistoryPage, { PlusVotingHistoryPageProps, -} from "scenes/plus/PlusVotingHistoryPage"; -import plusService from "scenes/plus/plusService"; +} from "components/plus/PlusVotingHistoryPage"; +import plusService from "services/plusService"; export const getStaticPaths: GetStaticPaths = async () => { return { diff --git a/scenes/plus/plusService.ts b/services/plusService.ts similarity index 100% rename from scenes/plus/plusService.ts rename to services/plusService.ts