diff --git a/README.md b/README.md index 12d70abd1..38a7c8db5 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,9 @@ I would recomend you use a browser extension like [Alby](https://getalby.com/) o - [ ] [NIP-42](https://github.com/nostr-protocol/nips/blob/master/42.md): Authentication of clients to relays - [ ] [NIP-50](https://github.com/nostr-protocol/nips/blob/master/50.md): Keywords filter - [ ] [NIP-56](https://github.com/nostr-protocol/nips/blob/master/56.md): Reporting +- [ ] [NIP-51](https://github.com/nostr-protocol/nips/blob/master/51.md): Lists (Mute, Pin, People List, and Bookmark list) - [x] [NIP-57](https://github.com/nostr-protocol/nips/blob/master/57.md): Lightning Zaps +- [ ] [NIP-57](https://github.com/nostr-protocol/nips/blob/master/57.md): Badges - [x] [NIP-65](https://github.com/nostr-protocol/nips/blob/master/65.md): Relay List Metadata ## TODO diff --git a/src/components/note/index.tsx b/src/components/note/index.tsx index c9dcf228f..a26b79b76 100644 --- a/src/components/note/index.tsx +++ b/src/components/note/index.tsx @@ -9,6 +9,7 @@ import { CardBody, CardFooter, CardHeader, + CardProps, Flex, Heading, IconButton, @@ -37,8 +38,9 @@ import { ExpandProvider } from "./expanded"; export type NoteProps = { event: NostrEvent; maxHeight?: number; + variant?: CardProps["variant"]; }; -export const Note = React.memo(({ event, maxHeight }: NoteProps) => { +export const Note = React.memo(({ event, maxHeight, variant = "outline" }: NoteProps) => { const isMobile = useIsMobile(); const account = useCurrentAccount(); const { openModal } = useContext(PostModalContext); @@ -51,7 +53,7 @@ export const Note = React.memo(({ event, maxHeight }: NoteProps) => { return ( - + diff --git a/src/views/note/index.tsx b/src/views/note/index.tsx index d05b71f12..e69c9904b 100644 --- a/src/views/note/index.tsx +++ b/src/views/note/index.tsx @@ -15,7 +15,7 @@ const NoteView = () => { const isRoot = rootId === focusId; const rootPost = thread.get(rootId); if (isRoot && rootPost) { - pageContent = ; + pageContent = ; } const post = thread.get(focusId); @@ -34,11 +34,11 @@ const NoteView = () => { {parentPosts.map((parent) => ( ))} - + ); } else if (events[focusId]) { - pageContent = ; + pageContent = ; } return ( diff --git a/src/views/note/thread-post.tsx b/src/views/note/thread-post.tsx index a385d4277..6501981ba 100644 --- a/src/views/note/thread-post.tsx +++ b/src/views/note/thread-post.tsx @@ -8,9 +8,10 @@ import { useIsMobile } from "../../hooks/use-is-mobile"; export type ThreadItemProps = { post: ThreadItemData; initShowReplies?: boolean; + focusId?: string; }; -export const ThreadPost = ({ post, initShowReplies }: ThreadItemProps) => { +export const ThreadPost = ({ post, initShowReplies, focusId }: ThreadItemProps) => { const isMobile = useIsMobile(); const [showReplies, setShowReplies] = useState(initShowReplies ?? post.replies.length === 1); const toggle = () => setShowReplies((v) => !v); @@ -19,7 +20,7 @@ export const ThreadPost = ({ post, initShowReplies }: ThreadItemProps) => { return ( - + {post.replies.length > 0 && ( <> }