[Glitch] fix: Update hashtags when (un)following a hashtag

Port b9b1500fc5 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion
2025-06-23 13:44:59 +02:00
committed by Claire
parent c6a99eaf5b
commit f7c36f44a4
6 changed files with 107 additions and 65 deletions

View File

@@ -19,7 +19,6 @@ export const ColumnLink: React.FC<{
method?: string;
badge?: React.ReactNode;
transparent?: boolean;
optional?: boolean;
className?: string;
id?: string;
}> = ({
@@ -34,13 +33,11 @@ export const ColumnLink: React.FC<{
method,
badge,
transparent,
optional,
...other
}) => {
const match = useRouteMatch(to ?? '');
const className = classNames('column-link', {
'column-link--transparent': transparent,
'column-link--optional': optional,
});
const badgeElement =
typeof badge !== 'undefined' ? (