Skip to content

Commit

Permalink
fix: remove feature modal (#3608)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Mar 13, 2024
1 parent 3838f83 commit 9d737ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/web/components/FeatureRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class TheComponent extends Component {
Utils.copyFeatureName(projectFlag.name)
}
confirmRemove = (projectFlag, cb) => {
openModal(
openModal2(
'Remove Feature',
<ConfirmRemoveFeature
environmentId={this.props.environmentId}
Expand Down
2 changes: 1 addition & 1 deletion frontend/web/components/modals/ConfirmRemoveFeature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const ConfirmRemoveFeature: FC<ConfirmRemoveFeatureType> = ({

<ModalHR />
<div className='modal-footer'>
<Button className='mr-2' theme='secondary' onClick={closeModal}>
<Button className='mr-2' theme='secondary' onClick={closeModal2}>
Cancel
</Button>
<Button
Expand Down
1 change: 0 additions & 1 deletion frontend/web/components/pages/UserPage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { Component } from 'react'
import ConfirmToggleFeature from 'components/modals/ConfirmToggleFeature'
import ConfirmRemoveFeature from 'components/modals/ConfirmRemoveFeature'
import CreateFlagModal from 'components/modals/CreateFlag'
import CreateTraitModal from 'components/modals/CreateTrait'
import TryIt from 'components/TryIt'
Expand Down

0 comments on commit 9d737ad

Please sign in to comment.