mirror of
https://github.com/block/buzz.git
synced 2026-10-29 13:31:44 +00:00
## Summary - show profile descriptions in hover cards as a single truncated line - open the profile panel when avatars are clicked across desktop surfaces - make the direct-message intro avatar clickable ## Validation - Desktop static checks - 3,807 desktop tests via pre-push --------- Signed-off-by: kenny lopez <klopez4212@gmail.com> Signed-off-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Carl <c7ebe626f000404285d3686e1dc74cc07cc60a9754a150041ba132e14bd3e2ec@buzz.block.builderlab.xyz>
23 lines
597 B
TypeScript
23 lines
597 B
TypeScript
import * as React from "react";
|
|
|
|
import { useAppNavigation } from "@/app/navigation/useAppNavigation";
|
|
import { ProfilePanelProvider } from "@/shared/context/ProfilePanelContext";
|
|
|
|
export function AppProfilePanelProvider({
|
|
children,
|
|
}: Readonly<{ children: React.ReactNode }>) {
|
|
const { goProfile } = useAppNavigation();
|
|
const handleOpenProfilePanel = React.useCallback(
|
|
(pubkey: string) => {
|
|
void goProfile(pubkey);
|
|
},
|
|
[goProfile],
|
|
);
|
|
|
|
return (
|
|
<ProfilePanelProvider onOpenProfilePanel={handleOpenProfilePanel}>
|
|
{children}
|
|
</ProfilePanelProvider>
|
|
);
|
|
}
|