mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 13:07:05 +03:00
25 lines
548 B
TypeScript
25 lines
548 B
TypeScript
import * as React from "react";
|
|
import * as ReactDOM from "react-dom";
|
|
import UnsubmittedVideosComponent from "../components/options/UnsubmittedVideosComponent";
|
|
|
|
class UnsubmittedVideos {
|
|
|
|
ref: React.RefObject<UnsubmittedVideosComponent>;
|
|
|
|
constructor(element: Element) {
|
|
this.ref = React.createRef();
|
|
|
|
ReactDOM.render(
|
|
<UnsubmittedVideosComponent ref={this.ref} />,
|
|
element
|
|
);
|
|
}
|
|
|
|
update(): void {
|
|
this.ref.current?.forceUpdate();
|
|
}
|
|
|
|
}
|
|
|
|
export default UnsubmittedVideos;
|