Refactor <FollowedTags> into TypeScript (#34355)

This commit is contained in:
Eugen Rochko 2025-04-08 18:06:23 +02:00 committed by GitHub
parent 887336f2c6
commit bdf9baa2e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 181 additions and 229 deletions

View file

@ -106,6 +106,7 @@ export interface HashtagProps {
to: string;
uses?: number;
withGraph?: boolean;
children?: React.ReactNode;
}
export const Hashtag: React.FC<HashtagProps> = ({
@ -117,6 +118,7 @@ export const Hashtag: React.FC<HashtagProps> = ({
className,
description,
withGraph = true,
children,
}) => (
<div className={classNames('trends__item', className)}>
<div className='trends__item__name'>
@ -158,5 +160,7 @@ export const Hashtag: React.FC<HashtagProps> = ({
</SilentErrorBoundary>
</div>
)}
{children && <div className='trends__item__buttons'>{children}</div>}
</div>
);