1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-10 01:16:39 +02:00

feat: beta indicator for project insights tab (#6686)

This commit is contained in:
Mateusz Kwasniewski 2024-03-26 08:55:35 +01:00 committed by GitHub
parent c4af2c96e5
commit df9229a90c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,6 +99,7 @@ export const Project = () => {
title: 'Insights', title: 'Insights',
path: `${basePath}/insights`, path: `${basePath}/insights`,
name: 'insights', name: 'insights',
new: true,
}, },
] ]
: []), : []),
@ -272,12 +273,12 @@ export const Project = () => {
tab.isEnterprise ? 'end' : undefined tab.isEnterprise ? 'end' : undefined
} }
icon={ icon={
<> <span>
<ConditionallyRender <ConditionallyRender
condition={Boolean(tab.new)} condition={Boolean(tab.new)}
show={ show={
<StyledBadge color='success'> <StyledBadge color='success'>
New Beta
</StyledBadge> </StyledBadge>
} }
/> />
@ -285,7 +286,7 @@ export const Project = () => {
isPro() && isPro() &&
enterpriseIcon) || enterpriseIcon) ||
undefined} undefined}
</> </span>
} }
/> />
); );