From 3c676d99b5b5aea21144b756c0eccf8a149a623b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Poizat?= Date: Wed, 8 Jan 2025 10:47:16 +0100 Subject: [PATCH] refactor: Improve readability by moving imgRef in state --- react/AppLinker/index.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/react/AppLinker/index.jsx b/react/AppLinker/index.jsx index 9ba3a52ad..de1346b19 100644 --- a/react/AppLinker/index.jsx +++ b/react/AppLinker/index.jsx @@ -15,12 +15,12 @@ import { export class AppLinker extends React.Component { static contextType = WebviewContext - state = {} + state = { + imgRef: null + } constructor(props) { super(props) - - this.imgRef = null } setImgRef = img => {