ChatPaneHeader: i18n title
This commit is contained in:
parent
e1edc9796b
commit
6c22a3841b
|
@ -1,4 +1,5 @@
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
import { Stack } from 'soapbox/components/ui';
|
import { Stack } from 'soapbox/components/ui';
|
||||||
import { ChatWidgetScreens, useChatContext } from 'soapbox/contexts/chat-context';
|
import { ChatWidgetScreens, useChatContext } from 'soapbox/contexts/chat-context';
|
||||||
|
@ -91,7 +92,7 @@ const ChatPane = () => {
|
||||||
return (
|
return (
|
||||||
<Pane isOpen={isOpen} index={0} main>
|
<Pane isOpen={isOpen} index={0} main>
|
||||||
<ChatPaneHeader
|
<ChatPaneHeader
|
||||||
title='Messages'
|
title={<FormattedMessage id='column.chats' defaultMessage='Chats' />}
|
||||||
unreadCount={unreadChatsCount}
|
unreadCount={unreadChatsCount}
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
onToggle={toggleChatPane}
|
onToggle={toggleChatPane}
|
||||||
|
|
Loading…
Reference in New Issue