diff --git a/src/pages/workspace/WorkspaceInitialPage.js b/src/pages/workspace/WorkspaceInitialPage.js index 2681476364b0..7a4d34a665b3 100644 --- a/src/pages/workspace/WorkspaceInitialPage.js +++ b/src/pages/workspace/WorkspaceInitialPage.js @@ -120,75 +120,87 @@ class WorkspaceInitialPage extends React.Component { shouldShowBackButton onBackButtonPress={() => Navigation.navigate(ROUTES.SETTINGS)} onCloseButtonPress={() => Navigation.dismissModal()} + shouldShowThreeDotsButton + shouldShowGetAssistanceButton guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_INITIAL} + threeDotsMenuItems={[ + { + icon: Expensicons.Plus, + text: this.props.translate('workspace.new.newWorkspace'), + onSelected: () => PolicyActions.createAndNavigate(), + }, { + icon: Expensicons.Trashcan, + text: this.props.translate('workspace.common.delete'), + onSelected: () => this.setState({isDeleteModalOpen: true}), + }, + ]} + threeDotsAnchorPosition={styles.threeDotsPopoverOffset} /> - - - + + + + {this.props.policy.avatarURL + ? ( + + ) + : ( + + )} + + {!_.isEmpty(this.props.policy.name) && ( - {this.props.policy.avatarURL - ? ( - - ) - : ( - - )} + + + {this.props.policy.name} + + - {!_.isEmpty(this.props.policy.name) && ( - - - - {this.props.policy.name} - - - - )} - + )} - {_.map(menuItems, item => ( - item.action()} - shouldShowRightIcon - /> - ))} + {_.map(menuItems, item => ( + item.action()} + shouldShowRightIcon + /> + ))}