Skip to content

Commit

Permalink
refactor empty view variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Dec 13, 2023
1 parent 5573367 commit 1f0e812
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/workspace/WorkspaceNewRoomPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function WorkspaceNewRoomPage(props) {

const {inputCallbackRef} = useAutoFocusInput();

const emptyWorkspaceView = (
const renderEmptyWorkspaceView = () => (
<>
<BlockingView
icon={Illustrations.ToddBehindCloud}
Expand Down Expand Up @@ -251,7 +251,7 @@ function WorkspaceNewRoomPage(props) {
>
{({insets}) =>
workspaceOptions.length === 0 ? (
<>{emptyWorkspaceView}</>
renderEmptyWorkspaceView()
) : (
<KeyboardAvoidingView
style={styles.h100}
Expand Down

0 comments on commit 1f0e812

Please sign in to comment.