note options constant param
This commit is contained in:
@ -4,6 +4,11 @@ import { useEventFeed } from "@snort/system-react";
|
||||
import Note from "@/Components/Event/EventComponent";
|
||||
import PageSpinner from "@/Components/PageSpinner";
|
||||
|
||||
const options = {
|
||||
showFooter: false,
|
||||
truncate: true,
|
||||
};
|
||||
|
||||
export default function NoteQuote({ link, depth }: { link: NostrLink; depth?: number }) {
|
||||
const ev = useEventFeed(link);
|
||||
if (!ev.data)
|
||||
@ -12,15 +17,5 @@ export default function NoteQuote({ link, depth }: { link: NostrLink; depth?: nu
|
||||
<PageSpinner />
|
||||
</div>
|
||||
);
|
||||
return (
|
||||
<Note
|
||||
data={ev.data}
|
||||
className="note-quote"
|
||||
depth={(depth ?? 0) + 1}
|
||||
options={{
|
||||
showFooter: false,
|
||||
truncate: true,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
return <Note data={ev.data} className="note-quote" depth={(depth ?? 0) + 1} options={options} />;
|
||||
}
|
||||
|
Reference in New Issue
Block a user