Big chat improvements, adjusted mobile ui.
This commit is contained in:
parent
80114d1d66
commit
7a922a5978
15 changed files with 201 additions and 101 deletions
|
|
@ -8,9 +8,11 @@ import {
|
|||
ContextMenuTrigger,
|
||||
} from "@tensamin/ui/cmp/context-menu";
|
||||
import { useNavigate } from "@tanstack/react-router";
|
||||
import { useSidebar } from "@tensamin/ui/cmp/sidebar";
|
||||
|
||||
export default function ConversationModal({ userId }: { userId: number }) {
|
||||
const navigate = useNavigate();
|
||||
const { setOpenMobile } = useSidebar();
|
||||
|
||||
return (
|
||||
<ContextMenu>
|
||||
|
|
@ -18,7 +20,10 @@ export default function ConversationModal({ userId }: { userId: number }) {
|
|||
render={
|
||||
<div
|
||||
className="select-none cursor-pointer"
|
||||
onClick={() => navigate({ to: "/chat", search: { id: userId } })}
|
||||
onClick={() => {
|
||||
navigate({ to: "/chat", search: { id: userId } });
|
||||
setOpenMobile(false);
|
||||
}}
|
||||
>
|
||||
<Wrapper
|
||||
loading={<Loading />}
|
||||
|
|
|
|||
Loading…
Reference in a new issue