diff --git a/packages/status-react/src/routes/chat/components/chat-info/index.tsx b/packages/status-react/src/routes/chat/components/chat-info/index.tsx index 36457083..6d94ae51 100644 --- a/packages/status-react/src/routes/chat/components/chat-info/index.tsx +++ b/packages/status-react/src/routes/chat/components/chat-info/index.tsx @@ -1,5 +1,7 @@ import React from 'react' +import { useMatch } from 'react-router-dom' + import { PinIcon } from '~/src/icons/pin-icon' import { Avatar, DialogTrigger, Flex, Text } from '~/src/system' @@ -13,13 +15,14 @@ interface Props { export const ChatInfo = (props: Props) => { const { chat } = props + const { params } = useMatch(':id')! // eslint-disable-line @typescript-eslint/no-non-null-assertion if (chat.type == 'channel') { return (
- #general + #{params.id}