MCPcopy
hub / github.com/refined-github/refined-github / showOverlay

Function showOverlay

source/helpers/overlay.tsx:5–18  ·  view source on GitHub ↗
(content: string | JSX.Element)

Source from the content-addressed store, hash-verified

3import React from 'dom-chef';
4
5export default async function showOverlay(content: string | JSX.Element): Promise<void> {
6 const overlay = <div className="rgh-overlay">{content}</div>;
7 document.body.append(overlay);
8 await overlay.animate(
9 [{opacity: 1}, {opacity: 0}],
10 {
11 duration: 300,
12 delay: 2000,
13 easing: 'ease-in',
14 fill: 'forwards',
15 },
16 ).finished;
17 overlay.remove();
18}

Callers 2

scrollOnSearchFunction · 0.85
handlerFunction · 0.85

Calls 2

removeMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected