feat(react): comment out NewChat route
This commit is contained in:
parent
8bbe72d699
commit
f4cb8eac6a
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue