Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Commenting out the confimation modal to test something in staging." #8892

Merged
merged 1 commit into from
May 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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