moderator-toolbox-nxg-for-reddit / modules/queuetools/components/DismissButtonRenderer

modules/queuetools/components/DismissButtonRenderer

Functions

DismissButtonRenderer()

DismissButtonRenderer(props): Element | null

Defined in: extension/data/modules/queuetools/components/DismissButtonRenderer.tsx:36

Shows a “dismiss” button on already-actioned queue items that removes the item from the DOM via onDismiss. The actioned class is added by Reddit only after the moderator clicks a native action button, so the item’s class list and byline are observed and the button’s visibility updates live.

Parameters

props

Component properties.

onDismiss

(thing) => void

target

Element

Returns

Element | null