Skip to content

Commit

Permalink
Remove hash flags completely since they're unused
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Feb 17, 2025
1 parent 2624c12 commit 7cc6f4f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 72 deletions.
7 changes: 1 addition & 6 deletions apps/web/src/components/Shared/Markup/MarkupLink/Hashtag.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { prideHashtags } from "@hey/data/pride-hashtags";
import isPrideMonth from "@hey/helpers/isPrideMonth";
import stopEventPropagation from "@hey/helpers/stopEventPropagation";
import type { MarkupLinkProps } from "@hey/types/misc";
import Link from "next/link";
Expand All @@ -11,9 +9,6 @@ const Hashtag: FC<MarkupLinkProps> = ({ title }) => {
return null;
}

const tag = title.slice(1).toLowerCase();
const isPrideHashtag = isPrideMonth() ? prideHashtags.includes(tag) : false;

return (
<span className="inline-flex items-center space-x-1">
<span>
Expand All @@ -26,7 +21,7 @@ const Hashtag: FC<MarkupLinkProps> = ({ title }) => {
})}
onClick={stopEventPropagation}
>
{isPrideHashtag ? <span className="pride-text">{title}</span> : title}
{title}
</Link>
</span>
</span>
Expand Down
14 changes: 0 additions & 14 deletions apps/web/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,20 +186,6 @@ ul {
@apply [&>div>div]:dark:divide-gray-700;
}

.pride-text {
background: linear-gradient(
to right,
#dc2626,
#ea580c,
#ca8a04,
#16a34a,
#2563eb,
#4f46e5,
#7c3aed
);
@apply bg-clip-text text-transparent;
}

.horizontal-loader > div {
background: linear-gradient(
5deg,
Expand Down
52 changes: 0 additions & 52 deletions packages/data/pride-hashtags.ts

This file was deleted.

0 comments on commit 7cc6f4f

Please sign in to comment.