Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Add some types
Browse files Browse the repository at this point in the history
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
  • Loading branch information
SimonBrandner committed Jun 30, 2021
1 parent 9bb65e7 commit 8a999d3
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions src/components/views/context_menus/MessageContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,17 @@ export function canCancel(eventStatus) {
}

interface IProps {
/* the MatrixEvent associated with the context menu */
mxEvent: MatrixEvent;

/* an optional EventTileOps implementation that can be used to unhide preview widgets */
eventTileOps;

/* an optional function to be called when the user clicks collapse thread, if not provided hide button */
collapseReplyThread?();

/* callback called when the menu is dismissed */
onFinished();

/* if the menu is inside a dialog, we sometimes need to close that dialog after click (forwarding) */
onCloseDialog?();

permalinkCreator: RoomPermalinkCreator;
// The MatrixEvent associated with the context menu */
mxEvent: MatrixEvent;
// An optional EventTileOps implementation that can be used to unhide preview widgets */
eventTileOps?; // TODO: Add type when TextualBody is TSified
// An optional function to be called when the user clicks collapse thread, if not provided hide button
collapseReplyThread?(): void;
// Callback called when the menu is dismissed
onFinished?(): void;
// If the menu is inside a dialog, we sometimes need to close that dialog after click (forwarding)
onCloseDialog?(): void;
permalinkCreator: RoomPermalinkCreator;
}

interface IState {
Expand Down

0 comments on commit 8a999d3

Please sign in to comment.