mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: incorrect types in ActionNavigate
(#7462)
This commit is contained in:
parent
57ea4e61d1
commit
d91c98b82e
3 changed files with 13 additions and 13 deletions
|
@ -13,12 +13,12 @@ import { searchIcon } from "./icons";
|
|||
import { t } from "../i18n";
|
||||
import { isShallowEqual } from "../utils";
|
||||
|
||||
export type GoToCollaboratorComponentProps = [
|
||||
ClientId,
|
||||
Collaborator,
|
||||
boolean,
|
||||
boolean,
|
||||
];
|
||||
export type GoToCollaboratorComponentProps = {
|
||||
clientId: ClientId;
|
||||
collaborator: Collaborator;
|
||||
withName: boolean;
|
||||
isBeingFollowed: boolean;
|
||||
};
|
||||
|
||||
/** collaborator user id or socket id (fallback) */
|
||||
type ClientId = string & { _brand: "UserId" };
|
||||
|
@ -60,12 +60,12 @@ const renderCollaborator = ({
|
|||
shouldWrapWithTooltip?: boolean;
|
||||
isBeingFollowed: boolean;
|
||||
}) => {
|
||||
const data: GoToCollaboratorComponentProps = [
|
||||
const data: GoToCollaboratorComponentProps = {
|
||||
clientId,
|
||||
collaborator,
|
||||
withName,
|
||||
isBeingFollowed,
|
||||
];
|
||||
};
|
||||
const avatarJSX = actionManager.renderAction("goToCollaborator", data);
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue