From f7d2d985b094377650836f6728d31fbd492ecc89 Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 15 Mar 2022 05:07:47 -0400 Subject: [PATCH] Move hc center --- src/{views => components}/hc-center/HcCenterView.scss | 0 src/{views => components}/hc-center/HcCenterView.tsx | 4 ++-- .../util => components/hc-center/common}/BadgeResolver.ts | 0 .../util => components/hc-center/common}/ClubStatus.ts | 0 src/components/index.scss | 1 + src/components/main/MainView.tsx | 2 +- src/views/Styles.scss | 1 - 7 files changed, 4 insertions(+), 4 deletions(-) rename src/{views => components}/hc-center/HcCenterView.scss (100%) rename src/{views => components}/hc-center/HcCenterView.tsx (99%) rename src/{views/hc-center/util => components/hc-center/common}/BadgeResolver.ts (100%) rename src/{views/hc-center/util => components/hc-center/common}/ClubStatus.ts (100%) diff --git a/src/views/hc-center/HcCenterView.scss b/src/components/hc-center/HcCenterView.scss similarity index 100% rename from src/views/hc-center/HcCenterView.scss rename to src/components/hc-center/HcCenterView.scss diff --git a/src/views/hc-center/HcCenterView.tsx b/src/components/hc-center/HcCenterView.tsx similarity index 99% rename from src/views/hc-center/HcCenterView.tsx rename to src/components/hc-center/HcCenterView.tsx index e3babadb..5236443c 100644 --- a/src/views/hc-center/HcCenterView.tsx +++ b/src/components/hc-center/HcCenterView.tsx @@ -5,8 +5,8 @@ import { AddEventLinkTracker, CreateLinkEvent, GetConfiguration, LocalizeText, R import { Base, Button, Column, Flex, LayoutAvatarImageView, LayoutBadgeImageView, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../common'; import { HcCenterEvent } from '../../events'; import { UseMessageEventHook, UseUiEvent } from '../../hooks'; -import { BadgeResolver } from './util/BadgeResolver'; -import { ClubStatus } from './util/ClubStatus'; +import { BadgeResolver } from './common/BadgeResolver'; +import { ClubStatus } from './common/ClubStatus'; export const HcCenterView: FC<{}> = props => diff --git a/src/views/hc-center/util/BadgeResolver.ts b/src/components/hc-center/common/BadgeResolver.ts similarity index 100% rename from src/views/hc-center/util/BadgeResolver.ts rename to src/components/hc-center/common/BadgeResolver.ts diff --git a/src/views/hc-center/util/ClubStatus.ts b/src/components/hc-center/common/ClubStatus.ts similarity index 100% rename from src/views/hc-center/util/ClubStatus.ts rename to src/components/hc-center/common/ClubStatus.ts diff --git a/src/components/index.scss b/src/components/index.scss index 71c7727a..c00839bd 100644 --- a/src/components/index.scss +++ b/src/components/index.scss @@ -8,6 +8,7 @@ @import './friends/FriendsView'; @import './groups/GroupView'; @import './guide-tool/GuideToolView'; +@import './hc-center/HcCenterView'; @import './help/HelpView'; @import './inventory/InventoryView'; @import './loading/LoadingView'; diff --git a/src/components/main/MainView.tsx b/src/components/main/MainView.tsx index 250cf763..45d382e3 100644 --- a/src/components/main/MainView.tsx +++ b/src/components/main/MainView.tsx @@ -3,7 +3,6 @@ import { FC, useCallback, useEffect, useState } from 'react'; import { AddEventLinkTracker, GetCommunication, RemoveLinkEventTracker } from '../../api'; import { Base, TransitionAnimation, TransitionAnimationTypes } from '../../common'; import { UseRoomSessionManagerEvent } from '../../hooks'; -import { HcCenterView } from '../../views/hc-center/HcCenterView'; import { HotelView } from '../../views/hotel-view/HotelView'; import { AchievementsView } from '../achievements/AchievementsView'; import { AvatarEditorView } from '../avatar-editor/AvatarEditorView'; @@ -15,6 +14,7 @@ import { FloorplanEditorView } from '../floorplan-editor/FloorplanEditorView'; import { FriendsView } from '../friends/FriendsView'; import { GroupsView } from '../groups/GroupsView'; import { GuideToolView } from '../guide-tool/GuideToolView'; +import { HcCenterView } from '../hc-center/HcCenterView'; import { HelpView } from '../help/HelpView'; import { InventoryView } from '../inventory/InventoryView'; import { ModToolsView } from '../mod-tools/ModToolsView'; diff --git a/src/views/Styles.scss b/src/views/Styles.scss index 2c62c8e7..0f26fa35 100644 --- a/src/views/Styles.scss +++ b/src/views/Styles.scss @@ -1,2 +1 @@ @import "./hotel-view/HotelView"; -@import "./hc-center/HcCenterView.scss";