Skip to content

Commit

Permalink
fix: typo (sat -> sats) and not opening multiple tabs for profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
imaginator committed Feb 19, 2025
1 parent 9303443 commit d8d5b06
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import React from 'react';
import { Link } from 'react-router-dom';

const TwitterHandle = ({ handle }) => {
const navigateToProfile = () => {
if (handle) window.open(`/${handle}`, '_self');
};

return (
<span
onClick={navigateToProfile}
className="cursor-pointer text-blue-700 font-bold"
>
<Link to={`/${handle}`} className="cursor-pointer text-blue-700 font-bold">
@{handle ?? 'anonymous'}
</span>
</Link>
);
};

Expand Down

0 comments on commit d8d5b06

Please sign in to comment.