From 7c8d5928dd63d5d2d6230bb260d85df23856eb5f Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 23 Mar 2022 22:56:35 -0400 Subject: [PATCH] Update campaign --- .../campaign/common => api/campaign}/CalendarItem.ts | 0 .../campaign/common => api/campaign}/CalendarItemState.ts | 0 .../campaign/common => api/campaign}/ICalendarItem.ts | 0 src/api/campaign/index.ts | 3 +++ src/components/campaign/CalendarItemView.tsx | 5 ++--- src/components/campaign/CalendarView.tsx | 4 +--- src/components/campaign/CampaignView.tsx | 3 +-- 7 files changed, 7 insertions(+), 8 deletions(-) rename src/{components/campaign/common => api/campaign}/CalendarItem.ts (100%) rename src/{components/campaign/common => api/campaign}/CalendarItemState.ts (100%) rename src/{components/campaign/common => api/campaign}/ICalendarItem.ts (100%) create mode 100644 src/api/campaign/index.ts diff --git a/src/components/campaign/common/CalendarItem.ts b/src/api/campaign/CalendarItem.ts similarity index 100% rename from src/components/campaign/common/CalendarItem.ts rename to src/api/campaign/CalendarItem.ts diff --git a/src/components/campaign/common/CalendarItemState.ts b/src/api/campaign/CalendarItemState.ts similarity index 100% rename from src/components/campaign/common/CalendarItemState.ts rename to src/api/campaign/CalendarItemState.ts diff --git a/src/components/campaign/common/ICalendarItem.ts b/src/api/campaign/ICalendarItem.ts similarity index 100% rename from src/components/campaign/common/ICalendarItem.ts rename to src/api/campaign/ICalendarItem.ts diff --git a/src/api/campaign/index.ts b/src/api/campaign/index.ts new file mode 100644 index 00000000..a86e40c4 --- /dev/null +++ b/src/api/campaign/index.ts @@ -0,0 +1,3 @@ +export * from './CalendarItem'; +export * from './CalendarItemState'; +export * from './ICalendarItem'; diff --git a/src/components/campaign/CalendarItemView.tsx b/src/components/campaign/CalendarItemView.tsx index ae81dd34..33df1ff7 100644 --- a/src/components/campaign/CalendarItemView.tsx +++ b/src/components/campaign/CalendarItemView.tsx @@ -1,8 +1,7 @@ import { FC } from 'react'; -import { GetConfiguration, GetRoomEngine, GetSessionDataManager } from '../../api'; +import { CalendarItemState, GetConfiguration, GetRoomEngine, GetSessionDataManager } from '../../api'; +import { ICalendarItem } from '../../api/campaign/ICalendarItem'; import { Base, Column, Flex, LayoutImage } from '../../common'; -import { CalendarItemState } from './common/CalendarItemState'; -import { ICalendarItem } from './common/ICalendarItem'; interface CalendarItemViewProps { diff --git a/src/components/campaign/CalendarView.tsx b/src/components/campaign/CalendarView.tsx index 40675056..ba6e711e 100644 --- a/src/components/campaign/CalendarView.tsx +++ b/src/components/campaign/CalendarView.tsx @@ -1,9 +1,7 @@ import { FC, useState } from 'react'; -import { GetSessionDataManager, LocalizeText } from '../../api'; +import { CalendarItemState, GetSessionDataManager, ICalendarItem, LocalizeText } from '../../api'; import { Base, Button, Column, Flex, Grid, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../common'; import { CalendarItemView } from './CalendarItemView'; -import { CalendarItemState } from './common/CalendarItemState'; -import { ICalendarItem } from './common/ICalendarItem'; interface CalendarViewProps { diff --git a/src/components/campaign/CampaignView.tsx b/src/components/campaign/CampaignView.tsx index 3464f29f..f34af2d2 100644 --- a/src/components/campaign/CampaignView.tsx +++ b/src/components/campaign/CampaignView.tsx @@ -1,9 +1,8 @@ import { CampaignCalendarData, CampaignCalendarDataMessageEvent, CampaignCalendarDoorOpenedMessageEvent, OpenCampaignCalendarDoorAsStaffComposer, OpenCampaignCalendarDoorComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; -import { AddEventLinkTracker, RemoveLinkEventTracker, SendMessageComposer } from '../../api'; +import { AddEventLinkTracker, CalendarItem, RemoveLinkEventTracker, SendMessageComposer } from '../../api'; import { BatchUpdates, UseMessageEventHook } from '../../hooks'; import { CalendarView } from './CalendarView'; -import { CalendarItem } from './common/CalendarItem'; export const CampaignView: FC<{}> = props => {