1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

feat(ui): added teaser styling for CE EE-3780 (#7323)

* added teaser styling for CE
This commit is contained in:
Richard Wei 2022-08-12 12:03:30 +12:00 committed by GitHub
parent 1fbaf5fcbf
commit a247db7e93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 529 additions and 434 deletions

View file

@ -1,5 +1,6 @@
import { PropsWithChildren } from 'react';
import clsx from 'clsx';
import { Briefcase } from 'react-feather';
import './BEFeatureIndicator.css';
@ -24,19 +25,16 @@ export function BEFeatureIndicator({
if (!limitedToBE) {
return null;
}
return (
<a
className={clsx('be-indicator', className)}
className={clsx('be-indicator vertical-center', className)}
href={url}
target="_blank"
rel="noopener noreferrer"
>
{children}
{showIcon && (
<i className="fas fa-briefcase space-right be-indicator-icon" />
)}
<span className="be-indicator-label break-words">
{showIcon && <Briefcase className="icon icon-sm vertical-center" />}
<span className="be-indicator-label break-words space-left">
Business Edition Feature
</span>
</a>