Skip to content

Commit

Permalink
refactor(BioWithLinks): formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alextes committed Oct 31, 2024
1 parent b435f54 commit 689dadc
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/mainsite/components/Twitter/BioWithLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const BioWithLinks: FC<{ bio: string; linkables: Linkables }> = ({
></span>
) : instruction.type === "url" ? (
<a
className="text-slateus-200 hover:text-slateus-200 hover:underline cursor-pointer"
className="cursor-pointer text-slateus-200 hover:text-slateus-200 hover:underline"
// href={instruction.linkable.expanded_url}
onClick={(e) => {
e.stopPropagation();
Expand All @@ -107,11 +107,14 @@ const BioWithLinks: FC<{ bio: string; linkables: Linkables }> = ({
</a>
) : instruction.type === "mention" ? (
<a
className="text-slateus-200 hover:text-slateus-200 hover:underline cursor-pointer"
className="cursor-pointer text-slateus-200 hover:text-slateus-200 hover:underline"
// href={`https://twitter.com/${instruction.linkable.username}`}
onClick={(e) => {
e.stopPropagation();
window.open(`https://twitter.com/${instruction.linkable.username}`, "_blank");
window.open(
`https://twitter.com/${instruction.linkable.username}`,
"_blank",
);
}}
key={index}
rel="noreferrer"
Expand All @@ -121,11 +124,14 @@ const BioWithLinks: FC<{ bio: string; linkables: Linkables }> = ({
</a>
) : instruction.type === "hashtag" ? (
<a
className="text-slateus-200 hover:text-slateus-200 hover:underline cursor-pointer"
className="cursor-pointer text-slateus-200 hover:text-slateus-200 hover:underline"
// href={`https://twitter.com/hashtag/${instruction.linkable.tag}`}
onClick={(e) => {
e.stopPropagation();
window.open(`https://twitter.com/hashtag/${instruction.linkable.tag}`, "_blank");
window.open(
`https://twitter.com/hashtag/${instruction.linkable.tag}`,
"_blank",
);
}}
key={index}
rel="noreferrer"
Expand All @@ -135,11 +141,14 @@ const BioWithLinks: FC<{ bio: string; linkables: Linkables }> = ({
</a>
) : instruction.type === "cashtag" ? (
<a
className="text-slateus-200 hover:text-slateus-200 hover:underline cursor-pointer"
className="cursor-pointer text-slateus-200 hover:text-slateus-200 hover:underline"
// href={`https://twitter.com/search?q=%24${instruction.linkable.tag}`}
onClick={(e) => {
e.stopPropagation();
window.open(`https://twitter.com/search?q=%24${instruction.linkable.tag}`, "_blank");
window.open(
`https://twitter.com/search?q=%24${instruction.linkable.tag}`,
"_blank",
);
}}
key={index}
rel="noreferrer"
Expand Down

0 comments on commit 689dadc

Please sign in to comment.