moderator-toolbox-nxg-for-reddit / modules/historybutton/components/HistoryPopup
modules/historybutton/components/HistoryPopup¶
Functions¶
HistoryPopup()¶
HistoryPopup(
__namedParameters):Element
Defined in: extension/data/modules/historybutton/components/HistoryPopup.tsx:51
Renders a draggable window with tables showing domain and subreddit breakdown for the user’s submission and (optionally) comment history.
Parameters¶
__namedParameters¶
HistoryPopupProps
Returns¶
Element
showHistoryPopup()¶
showHistoryPopup(
props): () =>void
Defined in: extension/data/modules/historybutton/components/HistoryPopup.tsx:311
Mounts a HistoryPopup through the shared popup registry and returns a cleanup
function. Deduplicated per user: re-opening the same user’s history reveals the live
popup (recovering it on-screen if it was dragged out of view) instead of mounting a
duplicate. Wraps the popup in the Redux Provider since mountPopup creates a fresh
React root that does not inherit the trigger button’s context.
Parameters¶
props¶
Omit<HistoryPopupProps, "onClose">
Popup props; onClose is supplied by the popup manager.
Returns¶
() => void