mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
chore: reorganize product data in footer (#8030)
## About the changes Instead of having the plan at the end, move it next to the product name and display the build number at last
This commit is contained in:
parent
1bc0f97101
commit
d7b1e70e68
@ -17,15 +17,11 @@ export const ApiDetails = (props: IApiDetailsProps): ReactElement => {
|
||||
const environment = props.uiConfig.environment;
|
||||
const updateNotification = formatUpdateNotification(props.uiConfig);
|
||||
|
||||
const buildInfo = buildNumber ? <small> ({buildNumber})</small> : '';
|
||||
const buildInfo = buildNumber ? <small>({buildNumber})</small> : '';
|
||||
return (
|
||||
<section title='API details'>
|
||||
<FooterTitle>
|
||||
{name} {version} {buildInfo}
|
||||
<ConditionallyRender
|
||||
condition={Boolean(environment)}
|
||||
show={<small> ({environment})</small>}
|
||||
/>
|
||||
{name} {environment ? environment : ''} {version} {buildInfo}
|
||||
</FooterTitle>
|
||||
<ConditionallyRender
|
||||
condition={Boolean(updateNotification)}
|
||||
|
@ -11,12 +11,9 @@ exports[`renders correctly with empty version 1`] = `
|
||||
>
|
||||
Unleash
|
||||
|
||||
test
|
||||
|
||||
|
||||
<small>
|
||||
(
|
||||
test
|
||||
)
|
||||
</small>
|
||||
</h2>
|
||||
<br />
|
||||
<small>
|
||||
@ -46,13 +43,10 @@ exports[`renders correctly with ui-config 1`] = `
|
||||
>
|
||||
Unleash
|
||||
|
||||
test
|
||||
|
||||
1.1.0
|
||||
|
||||
<small>
|
||||
(
|
||||
test
|
||||
)
|
||||
</small>
|
||||
</h2>
|
||||
<br />
|
||||
<small>
|
||||
@ -82,6 +76,7 @@ exports[`renders correctly with versionInfo 1`] = `
|
||||
>
|
||||
Unleash
|
||||
|
||||
|
||||
1.2.3
|
||||
|
||||
</h2>
|
||||
@ -118,6 +113,7 @@ exports[`renders correctly without uiConfig 1`] = `
|
||||
>
|
||||
Unleash
|
||||
|
||||
|
||||
1.1.0
|
||||
|
||||
</h2>
|
||||
|
@ -24,6 +24,7 @@ exports[`should render DrawerMenu 1`] = `
|
||||
>
|
||||
Unleash
|
||||
|
||||
|
||||
5.x
|
||||
|
||||
</h2>
|
||||
@ -570,6 +571,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
|
||||
>
|
||||
Unleash
|
||||
|
||||
|
||||
5.x
|
||||
|
||||
</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user