Rework the UI for the custom feed view

This commit is contained in:
Paul Frazee 2023-05-17 15:52:11 -05:00
parent 0f5b3808f8
commit c55ce6de02
8 changed files with 300 additions and 177 deletions

View file

@ -2,9 +2,9 @@ import {useEffect, useState} from 'react'
import {useStores} from 'state/index'
import {CustomFeedModel} from 'state/models/feeds/custom-feed'
export function useCustomFeed(uri: string) {
export function useCustomFeed(uri: string): CustomFeedModel | undefined {
const store = useStores()
const [item, setItem] = useState<CustomFeedModel>()
const [item, setItem] = useState<CustomFeedModel | undefined>()
useEffect(() => {
async function fetchView() {
const res = await store.agent.app.bsky.feed.getFeedGenerator({