feat: 24h pulse
This commit is contained in:
parent
b21855c294
commit
ce7afeb250
31 changed files with 1086 additions and 123 deletions
|
|
@ -26,7 +26,13 @@ export default function ProfileFeed({
|
|||
const { pubkey: myPubkey, pinListEvent: myPinListEvent } = useNostr()
|
||||
const { showKinds } = useKindFilter()
|
||||
const [temporaryShowKinds, setTemporaryShowKinds] = useState(showKinds)
|
||||
const [listMode, setListMode] = useState<TNoteListMode>(() => storage.getNoteListMode())
|
||||
const [listMode, setListMode] = useState<TNoteListMode>(() => {
|
||||
const mode = storage.getNoteListMode()
|
||||
if (mode === '24h') {
|
||||
return 'posts'
|
||||
}
|
||||
return mode
|
||||
})
|
||||
const [subRequests, setSubRequests] = useState<TFeedSubRequest[]>([])
|
||||
const [pinnedEventIds, setPinnedEventIds] = useState<string[]>([])
|
||||
const tabs = useMemo(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue