From f4cb8eac6ac35e3a295d2c7efdf8414feb8ca299 Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Mon, 23 May 2022 14:40:41 +0200 Subject: [PATCH] feat(react): comment out NewChat route --- packages/status-react/src/routes/index.tsx | 8 +++++--- packages/status-react/src/routes/new-chat/index.tsx | 11 +++++------ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/status-react/src/routes/index.tsx b/packages/status-react/src/routes/index.tsx index 9fc1cc0..640780f 100644 --- a/packages/status-react/src/routes/index.tsx +++ b/packages/status-react/src/routes/index.tsx @@ -7,13 +7,15 @@ import { AppProvider } from '~/src/contexts/app-context' import { DialogProvider } from '~/src/contexts/dialog-context' import { ThemeProvider } from '~/src/contexts/theme-context' import { Chat } from '~/src/routes/chat' -import { NewChat } from '~/src/routes/new-chat' +// import { NewChat } from '~/src/routes/new-chat' import { styled } from '~/src/styles/config' import { GlobalStyle } from '~/src/styles/GlobalStyle' import type { Config } from '~/src/types/config' -type Props = Config +interface Props extends Config { + meta?: string +} export const Community = (props: Props) => { const { theme, router: Router = BrowserRouter } = props @@ -28,7 +30,7 @@ export const Community = (props: Props) => { } /> - } /> + {/* } /> */} diff --git a/packages/status-react/src/routes/new-chat/index.tsx b/packages/status-react/src/routes/new-chat/index.tsx index 40d1fea..eccd807 100644 --- a/packages/status-react/src/routes/new-chat/index.tsx +++ b/packages/status-react/src/routes/new-chat/index.tsx @@ -1,4 +1,3 @@ -// @ts-nocheck import React, { useCallback, useMemo, useState } from 'react' import { BellIcon } from '~/src/icons/bell-icon' @@ -14,12 +13,12 @@ import { CrossIcon } from '../../components/Icons/CrossIcon' import { Member } from '../../components/Members/Member' import { SearchBlock } from '../../components/SearchBlock' import { textMediumStyles } from '../../components/Text' -import { ChatState, useChatState } from '../../contexts/chatStateProvider' -import { useUserPublicKey } from '../../contexts/identityProvider' -import { useMessengerContext } from '../../contexts/messengerProvider' -import { useNarrow } from '../../contexts/narrowProvider' +// import { ChatState, useChatState } from '../../contexts/chatStateProvider' +// import { useUserPublicKey } from '../../contexts/identityProvider' +// import { useMessengerContext } from '../../contexts/messengerProvider' +// import { useNarrow } from '../../contexts/narrowProvider' -import type { ChannelData } from '../../models/ChannelData' +// import type { ChannelData } from '../../models/ChannelData' interface Props { setEditGroup?: (val: boolean) => void