From 00c2e61aba35baa5850318b34df5c1eb6ff167fc Mon Sep 17 00:00:00 2001
From: Andre Fonseca <afonseca@expensify.com>
Date: Thu, 5 May 2022 16:48:04 +0100
Subject: [PATCH 1/3] commenting it out

---
 src/pages/workspace/WorkspaceInitialPage.js | 22 +++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/src/pages/workspace/WorkspaceInitialPage.js b/src/pages/workspace/WorkspaceInitialPage.js
index 3e43faf56c14..2aad69a34d7d 100644
--- a/src/pages/workspace/WorkspaceInitialPage.js
+++ b/src/pages/workspace/WorkspaceInitialPage.js
@@ -204,16 +204,18 @@ class WorkspaceInitialPage extends React.Component {
                         ))}
                     </View>
                 </ScrollView>
-                <ConfirmModal
-                    title={this.props.translate('workspace.common.delete')}
-                    isVisible={this.state.isDeleteModalOpen}
-                    onConfirm={this.confirmDeleteAndHideModal}
-                    onCancel={() => this.toggleDeleteModal(false)}
-                    prompt={this.props.translate('workspace.common.deleteConfirmation')}
-                    confirmText={this.props.translate('common.delete')}
-                    cancelText={this.props.translate('common.cancel')}
-                    danger
-                />
+                // TODO: this is to test something in staging we are having a hard time figuring out in dev. Will revert once we test on staging
+                // More details in https://github.com/Expensify/App/issues/8791
+                {/*<ConfirmModal*/}
+                {/*    title={this.props.translate('workspace.common.delete')}*/}
+                {/*    isVisible={this.state.isDeleteModalOpen}*/}
+                {/*    onConfirm={this.confirmDeleteAndHideModal}*/}
+                {/*    onCancel={() => this.toggleDeleteModal(false)}*/}
+                {/*    prompt={this.props.translate('workspace.common.deleteConfirmation')}*/}
+                {/*    confirmText={this.props.translate('common.delete')}*/}
+                {/*    cancelText={this.props.translate('common.cancel')}*/}
+                {/*    danger*/}
+                {/*/>*/}
             </ScreenWrapper>
         );
     }

From 823c37193cda9be2b20aeac67202895e65d7eb16 Mon Sep 17 00:00:00 2001
From: Andre Fonseca <afonseca@expensify.com>
Date: Thu, 5 May 2022 17:11:24 +0100
Subject: [PATCH 2/3] trying to deal with linter

---
 src/pages/workspace/WorkspaceInitialPage.js | 32 ++++++++++-----------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/pages/workspace/WorkspaceInitialPage.js b/src/pages/workspace/WorkspaceInitialPage.js
index 2aad69a34d7d..805533d711ff 100644
--- a/src/pages/workspace/WorkspaceInitialPage.js
+++ b/src/pages/workspace/WorkspaceInitialPage.js
@@ -6,7 +6,7 @@ import ROUTES from '../../ROUTES';
 import styles from '../../styles/styles';
 import Tooltip from '../../components/Tooltip';
 import Text from '../../components/Text';
-import ConfirmModal from '../../components/ConfirmModal';
+// import ConfirmModal from '../../components/ConfirmModal';
 import Icon from '../../components/Icon';
 import * as Expensicons from '../../components/Icon/Expensicons';
 import ScreenWrapper from '../../components/ScreenWrapper';
@@ -37,7 +37,7 @@ class WorkspaceInitialPage extends React.Component {
         this.confirmDeleteAndHideModal = this.confirmDeleteAndHideModal.bind(this);
 
         this.state = {
-            isDeleteModalOpen: false,
+            // isDeleteModalOpen: false,
         };
     }
 
@@ -53,7 +53,7 @@ class WorkspaceInitialPage extends React.Component {
      * @param {Boolean} shouldOpen
      */
     toggleDeleteModal(shouldOpen) {
-        this.setState({isDeleteModalOpen: shouldOpen});
+        // this.setState({isDeleteModalOpen: shouldOpen});
     }
 
     /**
@@ -131,7 +131,7 @@ class WorkspaceInitialPage extends React.Component {
                         }, {
                             icon: Expensicons.Trashcan,
                             text: this.props.translate('workspace.common.delete'),
-                            onSelected: () => this.setState({isDeleteModalOpen: true}),
+                            // onSelected: () => this.setState({isDeleteModalOpen: true}),
                         },
                     ]}
                     threeDotsAnchorPosition={styles.threeDotsPopoverOffset}
@@ -204,18 +204,18 @@ class WorkspaceInitialPage extends React.Component {
                         ))}
                     </View>
                 </ScrollView>
-                // TODO: this is to test something in staging we are having a hard time figuring out in dev. Will revert once we test on staging
-                // More details in https://github.com/Expensify/App/issues/8791
-                {/*<ConfirmModal*/}
-                {/*    title={this.props.translate('workspace.common.delete')}*/}
-                {/*    isVisible={this.state.isDeleteModalOpen}*/}
-                {/*    onConfirm={this.confirmDeleteAndHideModal}*/}
-                {/*    onCancel={() => this.toggleDeleteModal(false)}*/}
-                {/*    prompt={this.props.translate('workspace.common.deleteConfirmation')}*/}
-                {/*    confirmText={this.props.translate('common.delete')}*/}
-                {/*    cancelText={this.props.translate('common.cancel')}*/}
-                {/*    danger*/}
-                {/*/>*/}
+                {/* TODO: this is to test something in staging we are having a hard time figuring out in dev. Will revert once we test on staging - More details in https://github.com/Expensify/App/issues/8791
+                <ConfirmModal
+                    title={this.props.translate('workspace.common.delete')}
+                    isVisible={this.state.isDeleteModalOpen}
+                    onConfirm={this.confirmDeleteAndHideModal}
+                    onCancel={() => this.toggleDeleteModal(false)}
+                    prompt={this.props.translate('workspace.common.deleteConfirmation')}
+                    confirmText={this.props.translate('common.delete')}
+                    cancelText={this.props.translate('common.cancel')}
+                    danger
+                >
+                */}
             </ScreenWrapper>
         );
     }

From 0591433fc81935a5bef0bdf79e2d041c3c42e67e Mon Sep 17 00:00:00 2001
From: Andre Fonseca <afonseca@expensify.com>
Date: Thu, 5 May 2022 17:20:44 +0100
Subject: [PATCH 3/3] more linter stuff

---
 src/pages/workspace/WorkspaceInitialPage.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/pages/workspace/WorkspaceInitialPage.js b/src/pages/workspace/WorkspaceInitialPage.js
index 805533d711ff..18a442950b4d 100644
--- a/src/pages/workspace/WorkspaceInitialPage.js
+++ b/src/pages/workspace/WorkspaceInitialPage.js
@@ -6,6 +6,7 @@ import ROUTES from '../../ROUTES';
 import styles from '../../styles/styles';
 import Tooltip from '../../components/Tooltip';
 import Text from '../../components/Text';
+
 // import ConfirmModal from '../../components/ConfirmModal';
 import Icon from '../../components/Icon';
 import * as Expensicons from '../../components/Icon/Expensicons';
@@ -52,6 +53,7 @@ class WorkspaceInitialPage extends React.Component {
      * Toggle delete confirm modal visibility
      * @param {Boolean} shouldOpen
      */
+    // eslint-disable-next-line
     toggleDeleteModal(shouldOpen) {
         // this.setState({isDeleteModalOpen: shouldOpen});
     }
@@ -131,6 +133,7 @@ class WorkspaceInitialPage extends React.Component {
                         }, {
                             icon: Expensicons.Trashcan,
                             text: this.props.translate('workspace.common.delete'),
+
                             // onSelected: () => this.setState({isDeleteModalOpen: true}),
                         },
                     ]}
