|
|
|
|
@ -6,15 +6,12 @@ import s from './Sidebar.module.scss';
@@ -6,15 +6,12 @@ import s from './Sidebar.module.scss';
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
chatMessagesAtom, |
|
|
|
|
appStateAtom, |
|
|
|
|
chatDisplayNameAtom, |
|
|
|
|
chatUserIdAtom, |
|
|
|
|
} from '../../stores/ClientConfigStore'; |
|
|
|
|
import { AppStateOptions } from '../../stores/application-state'; |
|
|
|
|
|
|
|
|
|
export default function Sidebar() { |
|
|
|
|
const messages = useRecoilValue<ChatMessage[]>(chatMessagesAtom); |
|
|
|
|
const appState = useRecoilValue<AppStateOptions>(appStateAtom); |
|
|
|
|
const chatDisplayName = useRecoilValue<string>(chatDisplayNameAtom); |
|
|
|
|
const chatUserId = useRecoilValue<string>(chatUserIdAtom); |
|
|
|
|
|
|
|
|
|
@ -22,7 +19,6 @@ export default function Sidebar() {
@@ -22,7 +19,6 @@ export default function Sidebar() {
|
|
|
|
|
<Sider className={s.root} collapsedWidth={0} width={320}> |
|
|
|
|
<ChatContainer |
|
|
|
|
messages={messages} |
|
|
|
|
loading={appState.chatLoading} |
|
|
|
|
usernameToHighlight={chatDisplayName} |
|
|
|
|
chatUserId={chatUserId} |
|
|
|
|
isModerator={false} |
|
|
|
|
|