Browse Source

this fix #381 (#383)

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 year ago
parent
commit
a46497295d

+ 1 - 0
client/src/assets/icons/discord.svg

@@ -0,0 +1 @@
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.3303 4.19247C18.7767 3.45861 17.1156 2.92527 15.3789 2.62158C15.1656 3.0109 14.9164 3.53454 14.7446 3.9511C12.8985 3.67079 11.0693 3.67079 9.25714 3.9511C9.08537 3.53454 8.83053 3.0109 8.61534 2.62158C6.87679 2.92527 5.21374 3.46057 3.66017 4.19636C0.526624 8.9771 -0.32283 13.6391 0.101898 18.2349C2.18023 19.8019 4.19439 20.7537 6.17456 21.3766C6.66347 20.6973 7.09951 19.9751 7.47516 19.214C6.75973 18.9395 6.07451 18.6008 5.42705 18.2076C5.59882 18.0792 5.76684 17.9448 5.92916 17.8066C9.87818 19.6714 14.1689 19.6714 18.0707 17.8066C18.2349 17.9448 18.4029 18.0792 18.5728 18.2076C17.9235 18.6028 17.2364 18.9415 16.5209 19.216C16.8966 19.9751 17.3307 20.6992 17.8215 21.3786C19.8036 20.7557 21.8196 19.8038 23.898 18.2349C24.3963 12.9072 23.0466 8.28801 20.3303 4.19247ZM8.01316 15.4085C6.8277 15.4085 5.85553 14.2912 5.85553 12.9305C5.85553 11.5699 6.80694 10.4506 8.01316 10.4506C9.2194 10.4506 10.1915 11.5679 10.1708 12.9305C10.1727 14.2912 9.2194 15.4085 8.01316 15.4085ZM15.9867 15.4085C14.8013 15.4085 13.8291 14.2912 13.8291 12.9305C13.8291 11.5699 14.7805 10.4506 15.9867 10.4506C17.1929 10.4506 18.1651 11.5679 18.1443 12.9305C18.1443 14.2912 17.1929 15.4085 15.9867 15.4085Z" fill="black"></path></svg>

BIN
client/src/assets/imgs/wechat_qrcode.jpeg


BIN
client/src/assets/imgs/wechat_qrcode.png


+ 6 - 6
client/src/components/menu/CommunityBtn.tsx

@@ -6,11 +6,11 @@ import { makeStyles, Theme, Link } from '@material-ui/core';
 import ChevronRightIcon from '@material-ui/icons/ChevronRight';
 import GitHubIcon from '@material-ui/icons/GitHub';
 import peopleIcon from '@/assets/icons/people.svg?react';
-import slackIcon from '@/assets/icons/slack.svg?react';
-import qrcodePath from '../../assets/imgs/wechat_qrcode.png';
+import qrcodePath from '@/assets/imgs/wechat_qrcode.jpeg';
+import discordIcon from '@/assets/icons/discord.svg?react';
 
-const SLACK_LINK = 'https://slack.milvus.io';
 const GITHUB_LINK = 'https://github.com/milvus-io/milvus/discussions';
+const DISCORD_LINK = 'https://discord.com/invite/8uyFbECzPX';
 
 const getStyles = makeStyles((theme: Theme) => ({
   root: {
@@ -138,18 +138,18 @@ const CommunityBtn = (props: any) => {
 
               <SvgIcon
                 viewBox="0 0 24 24"
-                component={slackIcon}
+                component={discordIcon}
                 className={classes.icon}
               />
               <div className={classes.contentDesc}>{communityTrans.join}</div>
               <Link
                 classes={{ root: classes.contentLink }}
-                href={SLACK_LINK}
+                href={DISCORD_LINK}
                 underline="always"
                 target="_blank"
                 rel="noopener"
               >
-                {SLACK_LINK}
+                {DISCORD_LINK}
               </Link>
 
               <SvgIcon