-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Matthew Elwell <[email protected]>
- Loading branch information
1 parent
b377442
commit 3838f83
Showing
9 changed files
with
168 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import ConfirmRemoveFeature from './modals/ConfirmRemoveFeature' | ||
import React from 'react' | ||
import AppActions from 'common/dispatcher/app-actions' | ||
import { FeatureState, ProjectFlag } from 'common/types/responses' | ||
export const removeUserOverride = ({ | ||
cb, | ||
environmentId, | ||
identifier, | ||
identity, | ||
identityFlag, | ||
projectFlag, | ||
}: { | ||
environmentId: string | ||
identifier: string | ||
identity: string | ||
identityFlag: FeatureState | ||
projectFlag: ProjectFlag | ||
cb?: () => void | ||
}) => { | ||
const onConfirm = () => { | ||
AppActions.removeUserFlag({ | ||
cb, | ||
environmentId, | ||
identity, | ||
identityFlag, | ||
}) | ||
} | ||
openModal2( | ||
'Reset User Feature', | ||
<ConfirmRemoveFeature | ||
identity={identifier} | ||
projectFlag={projectFlag} | ||
cb={onConfirm} | ||
/>, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters