Skip to content

Commit

Permalink
Migrate to Lens v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Dec 13, 2024
1 parent 43cd89a commit b854e78
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
11 changes: 0 additions & 11 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 { STATIC_IMAGES_URL } from "@hey/data/constants";
import { hashflags } from "@hey/data/hashflags";
import { prideHashtags } from "@hey/data/pride-hashtags";
import isPrideMonth from "@hey/helpers/isPrideMonth";
import stopEventPropagation from "@hey/helpers/stopEventPropagation";
Expand All @@ -14,7 +12,6 @@ const Hashtag: FC<MarkupLinkProps> = ({ title }) => {
}

const tag = title.slice(1).toLowerCase();
const hasHashflag = Object.prototype.hasOwnProperty.call(hashflags, tag);
const isPrideHashtag = isPrideMonth() ? prideHashtags.includes(tag) : false;

return (
Expand All @@ -32,14 +29,6 @@ const Hashtag: FC<MarkupLinkProps> = ({ title }) => {
{isPrideHashtag ? <span className="pride-text">{title}</span> : title}
</Link>
</span>
{hasHashflag ? (
<img
alt={tag}
className="!mr-0.5 h-4"
height={16}
src={`${STATIC_IMAGES_URL}/hashflags/${hashflags[tag]}.png`}
/>
) : null}
</span>
);
};
Expand Down
26 changes: 0 additions & 26 deletions packages/data/hashflags.ts

This file was deleted.

0 comments on commit b854e78

Please sign in to comment.