From 975f3dd33f16fde07f1aa27f37144a60fb1698a8 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 14 Dec 2022 00:39:35 +0800 Subject: [PATCH] Finally fix HMR not working for this file --- src/components/compose.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/compose.jsx b/src/components/compose.jsx index aef824c6..dfce4c67 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -18,13 +18,13 @@ import Status from './status'; - Max character limit includes BOTH status text and Content Warning text */ -export default ({ +function Compose({ onClose, replyToStatus, editStatus, draftStatus, standalone, -}) => { +}) { const [uiState, setUIState] = useState('default'); const accounts = store.local.getJSON('accounts'); @@ -696,7 +696,7 @@ export default ({ ); -}; +} function MediaAttachment({ attachment, @@ -759,3 +759,5 @@ function MediaAttachment({ ); } + +export default Compose;