Skip to content

Commit

Permalink
fix nip94 widget
Browse files Browse the repository at this point in the history
  • Loading branch information
reyamir committed Aug 31, 2023
1 parent f2eb7a9 commit 0d207d4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/shared/notes/kinds/file.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { NDKEvent } from '@nostr-dev-kit/ndk';
import ReactPlayer from 'react-player';
import { Link } from 'react-router-dom';

import { Image } from '@shared/image';

Expand Down Expand Up @@ -38,8 +39,14 @@ export function FileNote({ event }: { event: NDKEvent }) {
}

return (
<div className="mb-2 mt-3">
<p>{url}</p>
<div className="mb-2">
<Link
to={url}
target="_blank"
className="break-all font-normal text-fuchsia-500 hover:text-fuchsia-600"
>
{url}
</Link>
</div>
);
}

0 comments on commit 0d207d4

Please sign in to comment.