1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-10 01:19:53 +01:00

fix: types

This commit is contained in:
Fredrik Oseberg 2024-01-10 15:00:54 +01:00
parent fb0e3f22ee
commit ebf604f353
No known key found for this signature in database
GPG Key ID: 816A423246CADD4E
2 changed files with 4 additions and 4 deletions

View File

@ -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{' '}

View File

@ -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}