Rework the UI for the custom feed view
This commit is contained in:
parent
0f5b3808f8
commit
c55ce6de02
8 changed files with 300 additions and 177 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue