diff --git a/packages/pl-fe/src/features/chats/components/chat-list-shoutbox.tsx b/packages/pl-fe/src/features/chats/components/chat-list-shoutbox.tsx index d0359a889..70bf962a5 100644 --- a/packages/pl-fe/src/features/chats/components/chat-list-shoutbox.tsx +++ b/packages/pl-fe/src/features/chats/components/chat-list-shoutbox.tsx @@ -7,6 +7,7 @@ import HStack from 'pl-fe/components/ui/hstack'; import Stack from 'pl-fe/components/ui/stack'; import Text from 'pl-fe/components/ui/text'; import { useAppSelector } from 'pl-fe/hooks/use-app-selector'; +import { useInstance } from 'pl-fe/hooks/use-instance'; import { usePlFeConfig } from 'pl-fe/hooks/use-pl-fe-config'; import type { Chat } from 'pl-api'; @@ -16,6 +17,7 @@ interface IChatListShoutboxInterface { } const ChatListShoutbox: React.FC = ({ onClick }) => { + const instance = useInstance(); const { logo } = usePlFeConfig(); const messages = useAppSelector((state) => state.shoutbox.messages); @@ -43,7 +45,7 @@ const ChatListShoutbox: React.FC = ({ onClick }) =>
- +
diff --git a/packages/pl-fe/src/features/chats/components/chat-page/components/chat-page-shoutbox.tsx b/packages/pl-fe/src/features/chats/components/chat-page/components/chat-page-shoutbox.tsx index 281532458..91c00b6d3 100644 --- a/packages/pl-fe/src/features/chats/components/chat-page/components/chat-page-shoutbox.tsx +++ b/packages/pl-fe/src/features/chats/components/chat-page/components/chat-page-shoutbox.tsx @@ -7,12 +7,14 @@ import HStack from 'pl-fe/components/ui/hstack'; import IconButton from 'pl-fe/components/ui/icon-button'; import Stack from 'pl-fe/components/ui/stack'; import Text from 'pl-fe/components/ui/text'; +import { useInstance } from 'pl-fe/hooks/use-instance'; import { usePlFeConfig } from 'pl-fe/hooks/use-pl-fe-config'; import Shoutbox from '../../shoutbox'; const ChatPageShoutbox = () => { const history = useHistory(); + const instance = useInstance(); const { logo } = usePlFeConfig(); return ( @@ -32,7 +34,7 @@ const ChatPageShoutbox = () => {
- +
diff --git a/packages/pl-fe/src/features/chats/components/chat-widget/shoutbox-window.tsx b/packages/pl-fe/src/features/chats/components/chat-widget/shoutbox-window.tsx index 07e555b66..cfb97b7a0 100644 --- a/packages/pl-fe/src/features/chats/components/chat-widget/shoutbox-window.tsx +++ b/packages/pl-fe/src/features/chats/components/chat-widget/shoutbox-window.tsx @@ -7,6 +7,7 @@ import Icon from 'pl-fe/components/ui/icon'; import Stack from 'pl-fe/components/ui/stack'; import Text from 'pl-fe/components/ui/text'; import { ChatWidgetScreens, useChatContext } from 'pl-fe/contexts/chat-context'; +import { useInstance } from 'pl-fe/hooks/use-instance'; import { usePlFeConfig } from 'pl-fe/hooks/use-pl-fe-config'; import Shoutbox from '../shoutbox'; @@ -15,6 +16,7 @@ import ChatPaneHeader from './chat-pane-header'; const ShoutboxWindow = () => { const { changeScreen, isOpen, toggleChatPane } = useChatContext(); + const instance = useInstance(); const { logo } = usePlFeConfig(); const closeChat = () => { @@ -43,7 +45,7 @@ const ShoutboxWindow = () => {
- +
diff --git a/packages/pl-fe/src/locales/en.json b/packages/pl-fe/src/locales/en.json index ac6b7c27e..8d81ba48c 100644 --- a/packages/pl-fe/src/locales/en.json +++ b/packages/pl-fe/src/locales/en.json @@ -273,7 +273,7 @@ "chat_composer.unblock": "Unblock", "chat_list_item.blocked_you": "This user has blocked you", "chat_list_item.blocking": "You have blocked this user", - "chat_list_item_shoutbox": "Instance shoutbox", + "chat_list_item_shoutbox": "{instance} shoutbox", "chat_message_list.blocked": "You blocked this user", "chat_message_list.blocked_by": "You are blocked by", "chat_message_list.network_failure.action": "Try again",