Skip to content

Commit

Permalink
Merge pull request #8892 from Expensify/revert-8882-afonseca_remove_c…
Browse files Browse the repository at this point in the history
…onfimation_workspace

Revert "Commenting out the confimation modal to test something in staging."
  • Loading branch information
MariaHCD authored May 6, 2022
2 parents 283569c + 3f268c6 commit a29cdc2
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/pages/workspace/WorkspaceInitialPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +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';
Expand Down Expand Up @@ -38,7 +37,7 @@ class WorkspaceInitialPage extends React.Component {
this.confirmDeleteAndHideModal = this.confirmDeleteAndHideModal.bind(this);

this.state = {
// isDeleteModalOpen: false,
isDeleteModalOpen: false,
};
}

Expand All @@ -53,9 +52,8 @@ class WorkspaceInitialPage extends React.Component {
* Toggle delete confirm modal visibility
* @param {Boolean} shouldOpen
*/
// eslint-disable-next-line
toggleDeleteModal(shouldOpen) {
// this.setState({isDeleteModalOpen: shouldOpen});
this.setState({isDeleteModalOpen: shouldOpen});
}

/**
Expand Down Expand Up @@ -133,8 +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}
Expand Down Expand Up @@ -207,7 +204,6 @@ 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}
Expand All @@ -217,8 +213,7 @@ class WorkspaceInitialPage extends React.Component {
confirmText={this.props.translate('common.delete')}
cancelText={this.props.translate('common.cancel')}
danger
>
*/}
/>
</ScreenWrapper>
);
}
Expand Down

0 comments on commit a29cdc2

Please sign in to comment.