mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-18 14:34:25 +01:00
update
This commit is contained in:
@@ -17,7 +17,7 @@ const RepliesDisplay: Component<{ eventId: string }> = (props) => {
|
||||
],
|
||||
}));
|
||||
|
||||
return <Timeline events={[...events()].reverse()} />;
|
||||
return <Timeline events={[...events()].reverse()} embedding={false} />;
|
||||
};
|
||||
|
||||
const ColumnContentDisplay: Component<{ columnContent: ColumnContent }> = (props) => {
|
||||
|
||||
@@ -1,17 +1,14 @@
|
||||
import { type Component } from 'solid-js';
|
||||
import type { Event as NostrEvent } from 'nostr-tools';
|
||||
|
||||
import ColumnItem from '@/components/ColumnItem';
|
||||
import TextNoteDisplay from './textNote/TextNoteDisplay';
|
||||
import TextNoteDisplay, { TextNoteDisplayProps } from './textNote/TextNoteDisplay';
|
||||
|
||||
export type TextNoteProps = {
|
||||
event: NostrEvent;
|
||||
};
|
||||
export type TextNoteProps = TextNoteDisplayProps;
|
||||
|
||||
const TextNote: Component<TextNoteProps> = (props) => {
|
||||
return (
|
||||
<ColumnItem>
|
||||
<TextNoteDisplay event={props.event} />
|
||||
<TextNoteDisplay {...props} />
|
||||
</ColumnItem>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -6,6 +6,7 @@ import DeprecatedRepost from '@/components/DeprecatedRepost';
|
||||
|
||||
export type TimelineProps = {
|
||||
events: NostrEvent[];
|
||||
embedding?: boolean;
|
||||
};
|
||||
|
||||
const Timeline: Component<TimelineProps> = (props) => {
|
||||
@@ -14,7 +15,7 @@ const Timeline: Component<TimelineProps> = (props) => {
|
||||
{(event) => (
|
||||
<Switch fallback={<div>unknown event</div>}>
|
||||
<Match when={event.kind === Kind.Text}>
|
||||
<TextNote event={event} />
|
||||
<TextNote event={event} embedding={props.embedding ?? true} />
|
||||
</Match>
|
||||
<Match when={(event.kind as number) === 6}>
|
||||
<DeprecatedRepost event={event} />
|
||||
|
||||
Reference in New Issue
Block a user