Browse Source

change reply feeds to be oldest-first

imwald
Silberengel 5 months ago
parent
commit
fad79e74fe
  1. 2
      src/components/NoteInteractions/index.tsx
  2. 2
      src/components/ReplyNoteList/index.tsx

2
src/components/NoteInteractions/index.tsx

@ -20,7 +20,7 @@ export default function NoteInteractions({
event: Event event: Event
}) { }) {
const [type, setType] = useState<TTabValue>('replies') const [type, setType] = useState<TTabValue>('replies')
const [replySort, setReplySort] = useState<ReplySortOption>('newest') const [replySort, setReplySort] = useState<ReplySortOption>('oldest')
const isDiscussion = event.kind === ExtendedKind.DISCUSSION const isDiscussion = event.kind === ExtendedKind.DISCUSSION
let list let list

2
src/components/ReplyNoteList/index.tsx

@ -33,7 +33,7 @@ type TRootInfo =
const LIMIT = 100 const LIMIT = 100
const SHOW_COUNT = 10 const SHOW_COUNT = 10
export default function ReplyNoteList({ index, event, sort = 'newest' }: { index?: number; event: NEvent; sort?: 'newest' | 'oldest' | 'top' | 'controversial' | 'most-zapped' }) { export default function ReplyNoteList({ index, event, sort = 'oldest' }: { index?: number; event: NEvent; sort?: 'newest' | 'oldest' | 'top' | 'controversial' | 'most-zapped' }) {
const { t } = useTranslation() const { t } = useTranslation()
const { push, currentIndex } = useSecondaryPage() const { push, currentIndex } = useSecondaryPage()
const { hideUntrustedInteractions, isUserTrusted } = useUserTrust() const { hideUntrustedInteractions, isUserTrusted } = useUserTrust()

Loading…
Cancel
Save