feat(react): comment out NewChat route

This commit is contained in:
Pavel Prichodko 2022-05-23 14:40:41 +02:00
parent 93544ee51d
commit 0e6e699683
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
2 changed files with 10 additions and 9 deletions

View File

@ -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) => {
<MainSidebar />
<Routes>
<Route path="/:id" element={<Chat />} />
<Route path="/new" element={<NewChat />} />
{/* <Route path="/new" element={<NewChat />} /> */}
</Routes>
</Wrapper>
</DialogProvider>

View File

@ -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