interface: fix prop drilling of isAdmin

This commit is contained in:
Logan Allen 2021-06-03 17:54:55 -05:00
parent cb7da7cbba
commit dfdb0cfe34

View File

@ -382,6 +382,7 @@ interface ChatMessageProps {
isLastRead?: boolean;
permalink?: string;
transcluded?: number;
isAdmin: boolean;
className?: string;
isPending?: boolean;
style?: unknown;
@ -471,7 +472,8 @@ function ChatMessage(props: ChatMessageProps) {
hideHover,
transcluded,
onReply,
onDelete
onDelete,
isAdmin
};
const message = useMemo(() => (