From d860a49a9f3cfa710e2d1dd441e76a7aac5aee90 Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 14 Mar 2022 06:54:05 -0400 Subject: [PATCH] Mod tools update --- src/components/mod-tools/ModToolsView.tsx | 2 +- src/components/mod-tools/{utils => common}/ISelectedUser.ts | 0 src/components/mod-tools/{utils => common}/IUserInfo.ts | 0 .../mod-tools/{utils => common}/ModActionDefinition.ts | 0 .../mod-tools/views/tickets/ModToolsIssueInfoView.tsx | 6 +++--- .../mod-tools/views/user/ModToolsUserModActionView.tsx | 4 ++-- .../mod-tools/views/user/ModToolsUserSendMessageView.tsx | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) rename src/components/mod-tools/{utils => common}/ISelectedUser.ts (100%) rename src/components/mod-tools/{utils => common}/IUserInfo.ts (100%) rename src/components/mod-tools/{utils => common}/ModActionDefinition.ts (100%) diff --git a/src/components/mod-tools/ModToolsView.tsx b/src/components/mod-tools/ModToolsView.tsx index bf6e86a5..142f6e27 100644 --- a/src/components/mod-tools/ModToolsView.tsx +++ b/src/components/mod-tools/ModToolsView.tsx @@ -5,10 +5,10 @@ import { GetRoomSession } from '../../api'; import { Button, NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../common'; import { ModToolsEvent, ModToolsOpenRoomChatlogEvent, ModToolsOpenRoomInfoEvent, ModToolsOpenUserInfoEvent } from '../../events'; import { DispatchUiEvent, UseRoomEngineEvent, UseUiEvent } from '../../hooks'; +import { ISelectedUser } from './common/ISelectedUser'; import { ModToolsContextProvider } from './ModToolsContext'; import { ModToolsMessageHandler } from './ModToolsMessageHandler'; import { initialModTools, ModToolsActions, ModToolsReducer } from './reducers/ModToolsReducer'; -import { ISelectedUser } from './utils/ISelectedUser'; import { ModToolsChatlogView } from './views/room/ModToolsChatlogView'; import { ModToolsRoomView } from './views/room/ModToolsRoomView'; import { ModToolsTicketsView } from './views/tickets/ModToolsTicketsView'; diff --git a/src/components/mod-tools/utils/ISelectedUser.ts b/src/components/mod-tools/common/ISelectedUser.ts similarity index 100% rename from src/components/mod-tools/utils/ISelectedUser.ts rename to src/components/mod-tools/common/ISelectedUser.ts diff --git a/src/components/mod-tools/utils/IUserInfo.ts b/src/components/mod-tools/common/IUserInfo.ts similarity index 100% rename from src/components/mod-tools/utils/IUserInfo.ts rename to src/components/mod-tools/common/IUserInfo.ts diff --git a/src/components/mod-tools/utils/ModActionDefinition.ts b/src/components/mod-tools/common/ModActionDefinition.ts similarity index 100% rename from src/components/mod-tools/utils/ModActionDefinition.ts rename to src/components/mod-tools/common/ModActionDefinition.ts diff --git a/src/components/mod-tools/views/tickets/ModToolsIssueInfoView.tsx b/src/components/mod-tools/views/tickets/ModToolsIssueInfoView.tsx index 14a8913b..b49ccef6 100644 --- a/src/components/mod-tools/views/tickets/ModToolsIssueInfoView.tsx +++ b/src/components/mod-tools/views/tickets/ModToolsIssueInfoView.tsx @@ -50,7 +50,7 @@ export const ModToolsIssueInfoView: FC = props => onIssueInfoClosed(issueId)} /> Issue Information - + @@ -60,11 +60,11 @@ export const ModToolsIssueInfoView: FC = props => - + - + diff --git a/src/components/mod-tools/views/user/ModToolsUserModActionView.tsx b/src/components/mod-tools/views/user/ModToolsUserModActionView.tsx index a2e564ce..8a11f6fe 100644 --- a/src/components/mod-tools/views/user/ModToolsUserModActionView.tsx +++ b/src/components/mod-tools/views/user/ModToolsUserModActionView.tsx @@ -2,9 +2,9 @@ import { CallForHelpTopicData, DefaultSanctionMessageComposer, ModAlertMessageCo import { FC, useMemo, useState } from 'react'; import { LocalizeText, NotificationAlertType, NotificationUtilities, SendMessageComposer } from '../../../../api'; import { Button, Column, Flex, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../common'; +import { ISelectedUser } from '../../common/ISelectedUser'; +import { ModActionDefinition } from '../../common/ModActionDefinition'; import { useModToolsContext } from '../../ModToolsContext'; -import { ISelectedUser } from '../../utils/ISelectedUser'; -import { ModActionDefinition } from '../../utils/ModActionDefinition'; interface ModToolsUserModActionViewProps { diff --git a/src/components/mod-tools/views/user/ModToolsUserSendMessageView.tsx b/src/components/mod-tools/views/user/ModToolsUserSendMessageView.tsx index 9be431c8..266b2680 100644 --- a/src/components/mod-tools/views/user/ModToolsUserSendMessageView.tsx +++ b/src/components/mod-tools/views/user/ModToolsUserSendMessageView.tsx @@ -4,7 +4,7 @@ import { SendMessageComposer } from '../../../../api'; import { Button, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../common'; import { NotificationAlertEvent } from '../../../../events'; import { DispatchUiEvent } from '../../../../hooks'; -import { ISelectedUser } from '../../utils/ISelectedUser'; +import { ISelectedUser } from '../../common/ISelectedUser'; interface ModToolsUserSendMessageViewProps {
Category{ LocalizeText('help.cfh.topic.' + ticket.reportedCategoryId) }{ LocalizeText('help.cfh.topic.' + ticket.reportedCategoryId) }
Description{ ticket.message }{ ticket.message }
Caller