fix: move watermark to about section (#16097)

(cherry picked from commit b80f018691)
This commit is contained in:
ʈᵃᵢ
2021-08-06 05:48:22 -07:00
committed by Ville Brofeldt
parent 0771475383
commit 95679d7594

View File

@@ -69,15 +69,6 @@ const StyledAnchor = styled.a`
padding-left: ${({ theme }) => theme.gridUnit}px;
`;
const WaterMark = styled.span`
font-size: 13px;
color: #b0b4c3;
margin: 0 ${({ theme }) => theme.gridUnit * 4}px;
@media (max-width: 1070px) {
display: none;
}
`;
const { SubMenu } = Menu;
interface RightMenuProps {
@@ -95,9 +86,6 @@ const RightMenu = ({
}: RightMenuProps) => (
<StyledDiv align={align}>
<Menu mode="horizontal">
{navbarRight.show_watermark && (
<WaterMark>{t('Powered by Apache Superset')}</WaterMark>
)}
{!navbarRight.user_is_anonymous && (
<SubMenu
data-test="new-dropdown"
@@ -160,6 +148,11 @@ const RightMenu = ({
<Menu.Divider key="version-info-divider" />,
<Menu.ItemGroup key="about-section" title={t('About')}>
<div className="about-section">
{navbarRight.show_watermark && (
<div css={versionInfoStyles}>
{t('Powered by Apache Superset')}
</div>
)}
{navbarRight.version_string && (
<div css={versionInfoStyles}>
Version: {navbarRight.version_string}