diff --git a/src/features/Setting/Footer.tsx b/src/features/Setting/Footer.tsx index 407fe37111..379b79ff64 100644 --- a/src/features/Setting/Footer.tsx +++ b/src/features/Setting/Footer.tsx @@ -11,7 +11,7 @@ import { useTranslation } from 'react-i18next'; import GuideModal from '@/components/GuideModal'; import GuideVideo from '@/components/GuideVideo'; import { GITHUB, GITHUB_ISSUES } from '@/const/url'; -import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig'; +import { useServerConfigStore } from '@/store/serverConfig'; import { isOnServerSide } from '@/utils/env'; const styles = createStaticStyles( @@ -28,9 +28,11 @@ const Footer = memo(() => { const [openStar, setOpenStar] = useState(false); const [openFeedback, setOpenFeedback] = useState(false); - const { hideGitHub } = useServerConfigStore(featureFlagsSelectors); + const hideGitHubEngagementFooter = useServerConfigStore((s) => + Boolean(s.featureFlags.hideGitHub || s.serverConfig.enableBusinessFeatures), + ); - return hideGitHub ? null : ( + return hideGitHubEngagementFooter ? null : ( <>
{ className={styles.contentContainer} gap={16} minWidth={MAX_WIDTH} - paddingBlock={16} + style={{ paddingBottom: 56, paddingTop: 16 }} wrapperStyle={{ minHeight: '100%', position: 'relative', }} > - + + +