fix(frontend): resolve inbox flickering click issue

This commit is contained in:
yassinedorbozgithub 2025-05-28 08:28:58 +01:00
parent 4692339bea
commit 3f56d1998d
3 changed files with 3 additions and 27 deletions

View File

@ -45,10 +45,8 @@ export const SubscribersList = (props: {
}, 400);
useEffect(() => {
if (chat) {
chat.setSubscriberId(subscriber);
}
}, [chat, subscriber]);
chat.setSubscriberId(subscriber);
}, [subscriber]);
return (
<>

View File

@ -45,7 +45,7 @@ export const Inbox = () => {
>
<Grid item width="100%" height="100%" overflow="hidden">
<MainContainer style={{ height: "100%" }}>
<Sidebar position="left">
<Sidebar position="left" style={{ flexBasis: "100%" }}>
<Grid paddingX={1} paddingTop={1}>
<Search
value={searchText}

View File

@ -1,22 +0,0 @@
/*
* Copyright © 2024 Hexastack. All rights reserved.
*
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/
import { ReactElement } from "react";
import { Inbox } from "@/components/inbox";
import { Layout } from "@/layout";
const InboxPage = () => {
return <Inbox />;
};
InboxPage.getLayout = function getLayout(page: ReactElement) {
return <Layout hasNoPadding>{page}</Layout>;
};
export default InboxPage;