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;
|
onSubmit: () => void;
|
||||||
onCancel?: () => void;
|
onCancel?: () => void;
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
isChangeRequest: boolean;
|
isChangeRequest?: boolean;
|
||||||
strategy: Partial<IFeatureStrategy>;
|
strategy: Partial<IFeatureStrategy>;
|
||||||
setStrategy: React.Dispatch<
|
setStrategy: React.Dispatch<
|
||||||
React.SetStateAction<Partial<IFeatureStrategy>>
|
React.SetStateAction<Partial<IFeatureStrategy>>
|
||||||
@ -201,7 +201,7 @@ export const FeatureStrategyForm = ({
|
|||||||
environmentId={environmentId}
|
environmentId={environmentId}
|
||||||
>
|
>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={isChangeRequest}
|
condition={Boolean(isChangeRequest)}
|
||||||
show={
|
show={
|
||||||
<Alert severity='success'>
|
<Alert severity='success'>
|
||||||
This feature toggle is currently enabled in the{' '}
|
This feature toggle is currently enabled in the{' '}
|
||||||
|
|||||||
@ -56,7 +56,7 @@ interface IFeatureStrategyFormProps {
|
|||||||
onSubmit: () => void;
|
onSubmit: () => void;
|
||||||
onCancel?: () => void;
|
onCancel?: () => void;
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
isChangeRequest?: boolean;
|
isChangeRequest: boolean;
|
||||||
strategy: Partial<IFeatureStrategy>;
|
strategy: Partial<IFeatureStrategy>;
|
||||||
setStrategy: React.Dispatch<
|
setStrategy: React.Dispatch<
|
||||||
React.SetStateAction<Partial<IFeatureStrategy>>
|
React.SetStateAction<Partial<IFeatureStrategy>>
|
||||||
@ -380,7 +380,7 @@ export const NewFeatureStrategyForm = ({
|
|||||||
show={alert}
|
show={alert}
|
||||||
elseShow={
|
elseShow={
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={Boolean(isChangeRequest)}
|
condition={isChangeRequest}
|
||||||
show={
|
show={
|
||||||
<FeatureStrategyChangeRequestAlert
|
<FeatureStrategyChangeRequestAlert
|
||||||
environment={environmentId}
|
environment={environmentId}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user