Merge pull request #22817 from mattermost/MM-51911-delete-workspace-button-opens-a-new-tab

MM-51911 - The Delete Workspace Button Opens the Modal in a New Tab
Этот коммит содержится в:
Conor Macpherson
2023-04-05 09:01:48 -04:00
коммит произвёл GitHub
родитель f1d1d1eff0 2c69315bc8
Коммит 3d7a54555f

Просмотреть файл

@@ -15,8 +15,6 @@ import {isCloudLicense} from 'utils/license_utils';
import {getCloudSubscription, getSubscriptionProduct} from 'mattermost-redux/selectors/entities/cloud';
import ExternalLink from 'components/external_link';
import DeleteWorkspaceModal from './delete_workspace_modal';
export default function DeleteWorkspaceCTA() {
@@ -80,17 +78,15 @@ export default function DeleteWorkspaceCTA() {
}}
/>
</div>
<ExternalLink
href=''
location='delete_workspace_cta'
className='cancelSubscriptionSection__contactUs'
<button
className='btn cancelSubscriptionSection__contactUs'
onClick={handleOnClickDelete}
>
<FormattedMessage
id='admin.billing.subscription.deleteWorkspaceSection.delete'
defaultMessage='Delete Workspace'
/>
</ExternalLink>
</button>
</div>
</div>
);