feat(react): comment out NewChat route

This commit is contained in:
Pavel Prichodko 2022-05-23 14:40:41 +02:00
parent 8bbe72d699
commit f4cb8eac6a
No known key found for this signature in database
GPG Key ID: 8E4C82D464215E83
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 { DialogProvider } from '~/src/contexts/dialog-context'
import { ThemeProvider } from '~/src/contexts/theme-context' import { ThemeProvider } from '~/src/contexts/theme-context'
import { Chat } from '~/src/routes/chat' 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 { styled } from '~/src/styles/config'
import { GlobalStyle } from '~/src/styles/GlobalStyle' import { GlobalStyle } from '~/src/styles/GlobalStyle'
import type { Config } from '~/src/types/config' import type { Config } from '~/src/types/config'
type Props = Config interface Props extends Config {
meta?: string
}
export const Community = (props: Props) => { export const Community = (props: Props) => {
const { theme, router: Router = BrowserRouter } = props const { theme, router: Router = BrowserRouter } = props
@ -28,7 +30,7 @@ export const Community = (props: Props) => {
<MainSidebar /> <MainSidebar />
<Routes> <Routes>
<Route path="/:id" element={<Chat />} /> <Route path="/:id" element={<Chat />} />
<Route path="/new" element={<NewChat />} /> {/* <Route path="/new" element={<NewChat />} /> */}
</Routes> </Routes>
</Wrapper> </Wrapper>
</DialogProvider> </DialogProvider>

View File

@ -1,4 +1,3 @@
// @ts-nocheck
import React, { useCallback, useMemo, useState } from 'react' import React, { useCallback, useMemo, useState } from 'react'
import { BellIcon } from '~/src/icons/bell-icon' import { BellIcon } from '~/src/icons/bell-icon'
@ -14,12 +13,12 @@ import { CrossIcon } from '../../components/Icons/CrossIcon'
import { Member } from '../../components/Members/Member' import { Member } from '../../components/Members/Member'
import { SearchBlock } from '../../components/SearchBlock' import { SearchBlock } from '../../components/SearchBlock'
import { textMediumStyles } from '../../components/Text' import { textMediumStyles } from '../../components/Text'
import { ChatState, useChatState } from '../../contexts/chatStateProvider' // import { ChatState, useChatState } from '../../contexts/chatStateProvider'
import { useUserPublicKey } from '../../contexts/identityProvider' // import { useUserPublicKey } from '../../contexts/identityProvider'
import { useMessengerContext } from '../../contexts/messengerProvider' // import { useMessengerContext } from '../../contexts/messengerProvider'
import { useNarrow } from '../../contexts/narrowProvider' // import { useNarrow } from '../../contexts/narrowProvider'
import type { ChannelData } from '../../models/ChannelData' // import type { ChannelData } from '../../models/ChannelData'
interface Props { interface Props {
setEditGroup?: (val: boolean) => void setEditGroup?: (val: boolean) => void