mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-27 11:02:16 +01:00
fix: spacing
This commit is contained in:
parent
ebf604f353
commit
9dd3336a04
@ -146,7 +146,15 @@ const StyledHeaderBox = styled(Box)(({ theme }) => ({
|
|||||||
paddingLeft: theme.spacing(6),
|
paddingLeft: theme.spacing(6),
|
||||||
paddingRight: theme.spacing(6),
|
paddingRight: theme.spacing(6),
|
||||||
paddingTop: theme.spacing(2),
|
paddingTop: theme.spacing(2),
|
||||||
paddingBottom: theme.spacing(2),
|
}));
|
||||||
|
|
||||||
|
const StyledAlertBox = styled(Box)(({ theme }) => ({
|
||||||
|
paddingLeft: theme.spacing(6),
|
||||||
|
paddingRight: theme.spacing(6),
|
||||||
|
'& > *': {
|
||||||
|
marginTop: theme.spacing(2),
|
||||||
|
marginBottom: theme.spacing(2),
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const StyledEnvironmentBox = styled(Box)(({ theme }) => ({
|
const StyledEnvironmentBox = styled(Box)(({ theme }) => ({
|
||||||
@ -375,45 +383,48 @@ export const NewFeatureStrategyForm = ({
|
|||||||
) : null}
|
) : null}
|
||||||
</StyledHeaderBox>
|
</StyledHeaderBox>
|
||||||
|
|
||||||
<ConditionallyRender
|
<StyledAlertBox>
|
||||||
condition={hasChangeRequestInReviewForEnvironment}
|
|
||||||
show={alert}
|
|
||||||
elseShow={
|
|
||||||
<ConditionallyRender
|
|
||||||
condition={isChangeRequest}
|
|
||||||
show={
|
|
||||||
<FeatureStrategyChangeRequestAlert
|
|
||||||
environment={environmentId}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<FeatureStrategyEnabled
|
|
||||||
projectId={feature.project}
|
|
||||||
featureId={feature.name}
|
|
||||||
environmentId={environmentId}
|
|
||||||
>
|
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={Boolean(isChangeRequest)}
|
condition={hasChangeRequestInReviewForEnvironment}
|
||||||
show={
|
show={alert}
|
||||||
<Alert severity='success'>
|
|
||||||
This feature toggle is currently enabled in the{' '}
|
|
||||||
<strong>{environmentId}</strong> environment. Any
|
|
||||||
changes made here will be available to users as soon
|
|
||||||
as these changes are approved and applied.
|
|
||||||
</Alert>
|
|
||||||
}
|
|
||||||
elseShow={
|
elseShow={
|
||||||
<Alert severity='success'>
|
<ConditionallyRender
|
||||||
This feature toggle is currently enabled in the{' '}
|
condition={isChangeRequest}
|
||||||
<strong>{environmentId}</strong> environment. Any
|
show={
|
||||||
changes made here will be available to users as soon
|
<FeatureStrategyChangeRequestAlert
|
||||||
as you hit <strong>save</strong>.
|
environment={environmentId}
|
||||||
</Alert>
|
/>
|
||||||
|
}
|
||||||
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</FeatureStrategyEnabled>
|
<FeatureStrategyEnabled
|
||||||
|
projectId={feature.project}
|
||||||
|
featureId={feature.name}
|
||||||
|
environmentId={environmentId}
|
||||||
|
>
|
||||||
|
<ConditionallyRender
|
||||||
|
condition={Boolean(isChangeRequest)}
|
||||||
|
show={
|
||||||
|
<Alert severity='success'>
|
||||||
|
This feature toggle is currently enabled in the{' '}
|
||||||
|
<strong>{environmentId}</strong> environment.
|
||||||
|
Any changes made here will be available to users
|
||||||
|
as soon as these changes are approved and
|
||||||
|
applied.
|
||||||
|
</Alert>
|
||||||
|
}
|
||||||
|
elseShow={
|
||||||
|
<Alert severity='success'>
|
||||||
|
This feature toggle is currently enabled in the{' '}
|
||||||
|
<strong>{environmentId}</strong> environment.
|
||||||
|
Any changes made here will be available to users
|
||||||
|
as soon as you hit <strong>save</strong>.
|
||||||
|
</Alert>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</FeatureStrategyEnabled>
|
||||||
|
</StyledAlertBox>
|
||||||
|
|
||||||
<StyledTabs value={tab} onChange={handleChange}>
|
<StyledTabs value={tab} onChange={handleChange}>
|
||||||
<StyledTab label='General' />
|
<StyledTab label='General' />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user