From 1f0e812a1fa26bfe8a35a81dea688dc24fb4b118 Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Wed, 13 Dec 2023 21:44:34 +0700 Subject: [PATCH] refactor empty view variable --- src/pages/workspace/WorkspaceNewRoomPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/workspace/WorkspaceNewRoomPage.js b/src/pages/workspace/WorkspaceNewRoomPage.js index edd76b2ae5c5..e7efe33b1e69 100644 --- a/src/pages/workspace/WorkspaceNewRoomPage.js +++ b/src/pages/workspace/WorkspaceNewRoomPage.js @@ -219,7 +219,7 @@ function WorkspaceNewRoomPage(props) { const {inputCallbackRef} = useAutoFocusInput(); - const emptyWorkspaceView = ( + const renderEmptyWorkspaceView = () => ( <> {({insets}) => workspaceOptions.length === 0 ? ( - <>{emptyWorkspaceView} + renderEmptyWorkspaceView() ) : (