mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-10 01:19:53 +01:00
fix: types
This commit is contained in:
parent
fb0e3f22ee
commit
ebf604f353
@ -42,7 +42,7 @@ interface IFeatureStrategyFormProps {
|
||||
onSubmit: () => void;
|
||||
onCancel?: () => void;
|
||||
loading: boolean;
|
||||
isChangeRequest: boolean;
|
||||
isChangeRequest?: boolean;
|
||||
strategy: Partial<IFeatureStrategy>;
|
||||
setStrategy: React.Dispatch<
|
||||
React.SetStateAction<Partial<IFeatureStrategy>>
|
||||
@ -201,7 +201,7 @@ export const FeatureStrategyForm = ({
|
||||
environmentId={environmentId}
|
||||
>
|
||||
<ConditionallyRender
|
||||
condition={isChangeRequest}
|
||||
condition={Boolean(isChangeRequest)}
|
||||
show={
|
||||
<Alert severity='success'>
|
||||
This feature toggle is currently enabled in the{' '}
|
||||
|
||||
@ -56,7 +56,7 @@ interface IFeatureStrategyFormProps {
|
||||
onSubmit: () => void;
|
||||
onCancel?: () => void;
|
||||
loading: boolean;
|
||||
isChangeRequest?: boolean;
|
||||
isChangeRequest: boolean;
|
||||
strategy: Partial<IFeatureStrategy>;
|
||||
setStrategy: React.Dispatch<
|
||||
React.SetStateAction<Partial<IFeatureStrategy>>
|
||||
@ -380,7 +380,7 @@ export const NewFeatureStrategyForm = ({
|
||||
show={alert}
|
||||
elseShow={
|
||||
<ConditionallyRender
|
||||
condition={Boolean(isChangeRequest)}
|
||||
condition={isChangeRequest}
|
||||
show={
|
||||
<FeatureStrategyChangeRequestAlert
|
||||
environment={environmentId}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user