From f513a086728ae88c6a6bb98ec460617275e0afd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Horus=20Lugo=20L=C3=B3pez?= Date: Thu, 17 Jun 2021 12:43:20 +0200 Subject: [PATCH 01/10] Remove code that won't ship in V1 --- src/languages/en.js | 5 +- src/languages/es.js | 5 +- src/pages/workspace/NewWorkspacePage.js | 87 ------------------------- 3 files changed, 2 insertions(+), 95 deletions(-) diff --git a/src/languages/en.js b/src/languages/en.js index 74623a29a6f5..f9e1cf3f8526 100755 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -370,11 +370,8 @@ export default { new: { welcome: 'Welcome', chooseAName: 'Choose a name', - helpText: 'Need help getting setup? Request a call below and we’ll have someone reach out to you.', + helpText: 'Name your Workspace before enabling your Expensify Cards!', getStarted: 'Get started!', - editPhoto: 'Edit Photo', - uploadPhoto: 'Upload Photo', - requestCall: 'Request a call', }, invite: { invitePeople: 'Invite People', diff --git a/src/languages/es.js b/src/languages/es.js index d1e1d0e4e231..ed2b2de96e24 100644 --- a/src/languages/es.js +++ b/src/languages/es.js @@ -311,11 +311,8 @@ export default { new: { welcome: 'Bienvenido/a', chooseAName: 'Elige un nombre', - helpText: '¿Necesitas ayuda con la configuración? Pídenos una llamada y una persona de nuestro equipo te ayudará.', + helpText: '¡Dale un nombre a tu Workspace antes de activar tus Expensify Cards!', getStarted: '¡Empezar!', - uploadPhoto: 'Subir Foto', - editPhoto: 'Editar Foto', - requestCall: 'Concertar una llamada', }, invite: { invitePeople: 'Invitar a la gente', diff --git a/src/pages/workspace/NewWorkspacePage.js b/src/pages/workspace/NewWorkspacePage.js index 3a70fa29a130..8410486d44aa 100644 --- a/src/pages/workspace/NewWorkspacePage.js +++ b/src/pages/workspace/NewWorkspacePage.js @@ -12,11 +12,6 @@ import styles from '../../styles/styles'; import WorkspaceDefaultAvatar from '../../../assets/images/workspace-default-avatar.svg'; import TextInputWithLabel from '../../components/TextInputWithLabel'; import Button from '../../components/Button'; -import AttachmentPicker from '../../components/AttachmentPicker'; -import Icon from '../../components/Icon'; -import {DownArrow, Upload} from '../../components/Icon/Expensicons'; -import CreateMenu from '../../components/CreateMenu'; -import Switch from '../../components/Switch'; import compose from '../../libs/compose'; @@ -32,38 +27,8 @@ class NewWorkspacePage extends React.Component { super(props); this.state = { - isEditPhotoMenuVisible: false, name: '', - requestCall: false, }; - - this.createMenuItems = this.createMenuItems.bind(this); - } - - /** - * Create menu items list for avatar menu - * - * @param {Function} openPicker - * @returns {Array} - */ - createMenuItems(openPicker) { - const menuItems = [ - { - icon: Upload, - text: this.props.translate('workspace.new.uploadPhoto'), - onSelected: () => { - openPicker({ - onPicked: () => { - // TODO: connect with setWorkspaceAvatar function - }, - }); - }, - }, - ]; - - // TODO: Add option to remove avatar if the user doesn't like the one they chose. - - return menuItems; } render() { @@ -80,39 +45,8 @@ class NewWorkspacePage extends React.Component { /> - {/* TODO: replace this with the Avatar component once we connect it with the backend */} - - {({openPicker}) => ( - <> -