diff --git a/src/components/icons/platform/Twitter.tsx b/src/components/icons/platform/Twitter.tsx index 2b96e49eb0..0bd0516dc4 100644 --- a/src/components/icons/platform/Twitter.tsx +++ b/src/components/icons/platform/Twitter.tsx @@ -4,7 +4,7 @@ export function TwitterIcon(props: SVGProps) { return ( diff --git a/src/components/ui/rich-link/Favicon.tsx b/src/components/ui/rich-link/Favicon.tsx index f4ebc4d2da..1ffcd0802d 100644 --- a/src/components/ui/rich-link/Favicon.tsx +++ b/src/components/ui/rich-link/Favicon.tsx @@ -16,7 +16,7 @@ import { const prefixToIconMap = { GH: , - TW: , + TW: , TG: , BL: , ZH: , diff --git a/src/components/widgets/comment/Comment.tsx b/src/components/widgets/comment/Comment.tsx index b5d9bba941..00bb7cd1d3 100644 --- a/src/components/widgets/comment/Comment.tsx +++ b/src/components/widgets/comment/Comment.tsx @@ -17,7 +17,10 @@ import type { PropsWithChildren } from 'react' import { Avatar } from '~/components/ui/avatar' import { RelativeTime } from '~/components/ui/relative-time' -import { UserAuthStrategyIcon } from '~/components/ui/user/UserAuthStrategyIcon' +import { + getStrategyIconComponent, + UserAuthStrategyIcon, +} from '~/components/ui/user/UserAuthStrategyIcon' import { softSpringPreset } from '~/constants/spring' import { jotaiStore } from '~/lib/store' @@ -85,7 +88,7 @@ export const Comment: Component<{ data-parent-id={parentId} className={clsx('relative my-2', className)} > -
+
- {source && ( - + {source && !!getStrategyIconComponent(source) && ( +
+ +
)}
diff --git a/src/components/widgets/shared/ShareModal.tsx b/src/components/widgets/shared/ShareModal.tsx index 46d27b2619..cca9374620 100644 --- a/src/components/widgets/shared/ShareModal.tsx +++ b/src/components/widgets/shared/ShareModal.tsx @@ -14,7 +14,7 @@ const QRCodeSVG = dynamic( const shareList = [ { name: 'Twitter', - icon: , + icon: , onClick: (data: ShareData) => { window.open( `https://twitter.com/intent/tweet?url=${data.url}&text=${