Skip to content

Commit

Permalink
🐛 fix: Fix feedback link
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 29, 2023
1 parent 7035737 commit 88c8c9c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
4 changes: 2 additions & 2 deletions javascript/main.js

Large diffs are not rendered by default.

27 changes: 11 additions & 16 deletions src/components/Giscus/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import {
ActionIcon,
DiscordIcon,
Giscus as G,
GradientButton,
Icon,
Modal,
type ModalProps,
} from '@lobehub/ui';
import { Button, Space } from 'antd';
import { Button } from 'antd';
import { useTheme } from 'antd-style';
import isEqual from 'fast-deep-equal';
import { Github } from 'lucide-react';
Expand Down Expand Up @@ -37,16 +36,8 @@ const Giscus = memo<GiscusProps>(({ open, onCancel }) => {
open={open}
title={
<Flexbox align={'center'} gap={4} horizontal>
<a href={'https://discord.gg/AYFPHvv2jT'} rel="noreferrer" target="_blank">
<ActionIcon icon={DiscordIcon} title={'Discord'} />
</a>
<a href={homepage} rel="noreferrer" target="_blank">
<ActionIcon icon={Github} title={repoName} />
</a>
<Space>
{t('modal.themeFeedback.title')}
<VersionTag />
</Space>
{t('modal.themeFeedback.title')}
<VersionTag />
</Flexbox>
}
>
Expand All @@ -61,10 +52,14 @@ const Giscus = memo<GiscusProps>(({ open, onCancel }) => {
padding: '16px 0',
}}
>
<Button icon={<Icon icon={DiscordIcon} />} size={'large'}>
Join Discover
</Button>
<GradientButton icon={<Icon icon={Github} />}>LobeTheme Github</GradientButton>
<a href={'https://discord.gg/AYFPHvv2jT'} rel="noreferrer" target="_blank">
<Button icon={<Icon icon={DiscordIcon} />} size={'large'}>
Join Discover
</Button>
</a>
<a href={homepage} rel="noreferrer" target="_blank">
<GradientButton icon={<Icon icon={Github} />}>LobeTheme Github</GradientButton>
</a>
</Center>
<G lang={setting.i18n} mapping="number" repo={repoName} repoId="R_kgDOJCPcNg" term="53" />
</Flexbox>
Expand Down

0 comments on commit 88c8c9c

Please sign in to comment.