diff --git a/webapp/src/components/modalWrapper.tsx b/webapp/src/components/modalWrapper.tsx index 8f0034fb0..b8cc1c209 100644 --- a/webapp/src/components/modalWrapper.tsx +++ b/webapp/src/components/modalWrapper.tsx @@ -4,16 +4,15 @@ import React from 'react' import './modalWrapper.scss' type Props = { + children: React.ReactNode } -class ModalWrapper extends React.PureComponent { - render(): JSX.Element { - return ( -
- {this.props.children} -
- ) - } -} +const ModalWrapper = React.memo((props: Props) => { + return ( +
+ {props.children} +
+ ) +}) export default ModalWrapper