mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-29 01:15:48 +02: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 environment = props.uiConfig.environment;
|
||||||
const updateNotification = formatUpdateNotification(props.uiConfig);
|
const updateNotification = formatUpdateNotification(props.uiConfig);
|
||||||
|
|
||||||
const buildInfo = buildNumber ? <small> ({buildNumber})</small> : '';
|
const buildInfo = buildNumber ? <small>({buildNumber})</small> : '';
|
||||||
return (
|
return (
|
||||||
<section title='API details'>
|
<section title='API details'>
|
||||||
<FooterTitle>
|
<FooterTitle>
|
||||||
{name} {version} {buildInfo}
|
{name} {environment ? environment : ''} {version} {buildInfo}
|
||||||
<ConditionallyRender
|
|
||||||
condition={Boolean(environment)}
|
|
||||||
show={<small> ({environment})</small>}
|
|
||||||
/>
|
|
||||||
</FooterTitle>
|
</FooterTitle>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={Boolean(updateNotification)}
|
condition={Boolean(updateNotification)}
|
||||||
|
@ -11,12 +11,9 @@ exports[`renders correctly with empty version 1`] = `
|
|||||||
>
|
>
|
||||||
Unleash
|
Unleash
|
||||||
|
|
||||||
|
test
|
||||||
|
|
||||||
|
|
||||||
<small>
|
|
||||||
(
|
|
||||||
test
|
|
||||||
)
|
|
||||||
</small>
|
|
||||||
</h2>
|
</h2>
|
||||||
<br />
|
<br />
|
||||||
<small>
|
<small>
|
||||||
@ -46,13 +43,10 @@ exports[`renders correctly with ui-config 1`] = `
|
|||||||
>
|
>
|
||||||
Unleash
|
Unleash
|
||||||
|
|
||||||
|
test
|
||||||
|
|
||||||
1.1.0
|
1.1.0
|
||||||
|
|
||||||
<small>
|
|
||||||
(
|
|
||||||
test
|
|
||||||
)
|
|
||||||
</small>
|
|
||||||
</h2>
|
</h2>
|
||||||
<br />
|
<br />
|
||||||
<small>
|
<small>
|
||||||
@ -82,6 +76,7 @@ exports[`renders correctly with versionInfo 1`] = `
|
|||||||
>
|
>
|
||||||
Unleash
|
Unleash
|
||||||
|
|
||||||
|
|
||||||
1.2.3
|
1.2.3
|
||||||
|
|
||||||
</h2>
|
</h2>
|
||||||
@ -118,6 +113,7 @@ exports[`renders correctly without uiConfig 1`] = `
|
|||||||
>
|
>
|
||||||
Unleash
|
Unleash
|
||||||
|
|
||||||
|
|
||||||
1.1.0
|
1.1.0
|
||||||
|
|
||||||
</h2>
|
</h2>
|
||||||
|
@ -24,6 +24,7 @@ exports[`should render DrawerMenu 1`] = `
|
|||||||
>
|
>
|
||||||
Unleash
|
Unleash
|
||||||
|
|
||||||
|
|
||||||
5.x
|
5.x
|
||||||
|
|
||||||
</h2>
|
</h2>
|
||||||
@ -570,6 +571,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
|
|||||||
>
|
>
|
||||||
Unleash
|
Unleash
|
||||||
|
|
||||||
|
|
||||||
5.x
|
5.x
|
||||||
|
|
||||||
</h2>
|
</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user