This commit is contained in:
2022-12-24 15:22:23 -07:00
parent 882709fcea
commit c1f33f9df5
7 changed files with 189 additions and 44 deletions

View File

@@ -14,10 +14,12 @@ export class BigPicture extends React.PureComponent<Props, {}> {
componentDidMount() {
window.addEventListener("keyup", this._onEscape as any);
document.body.classList.add("no-scroll");
}
componentWillUnmount() {
window.removeEventListener("keyup", this._onEscape as any);
document.body.classList.remove("no-scroll");
}
render() {