mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
chore: remove like github star footer (#13246)
This commit is contained in:
@@ -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<PropsWithChildren>(() => {
|
||||
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 : (
|
||||
<>
|
||||
<Flexbox className={LayoutSettingsFooterClassName} justify={'flex-end'}>
|
||||
<Center
|
||||
|
||||
@@ -17,13 +17,15 @@ const Layout = () => {
|
||||
className={styles.contentContainer}
|
||||
gap={16}
|
||||
minWidth={MAX_WIDTH}
|
||||
paddingBlock={16}
|
||||
style={{ paddingBottom: 56, paddingTop: 16 }}
|
||||
wrapperStyle={{
|
||||
minHeight: '100%',
|
||||
position: 'relative',
|
||||
}}
|
||||
>
|
||||
<Outlet />
|
||||
<Flexbox gap={16} style={{ paddingBlockEnd: 40 }} width={'100%'}>
|
||||
<Outlet />
|
||||
</Flexbox>
|
||||
<div className={styles.spacer} />
|
||||
<Footer />
|
||||
</WideScreenContainer>
|
||||
|
||||
@@ -3,7 +3,7 @@ import { createStaticStyles } from 'antd-style';
|
||||
export const styles = createStaticStyles(({ css }) => ({
|
||||
// 主容器
|
||||
mainContainer: css`
|
||||
padding-block-start: 8px;
|
||||
padding-block: 8px 48px;
|
||||
padding-inline: 16px;
|
||||
`,
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user