feat: get list type

This commit is contained in:
DIYgod 2024-04-16 13:34:54 +08:00
parent 4b950c8cf9
commit a9414d2d69
No known key found for this signature in database
2 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,7 @@ export function FeedList({
level: levels.type,
id: type,
name: levels.type,
type,
})
}}
>
@ -39,6 +40,7 @@ export function FeedList({
data={category}
activedList={activedList}
setActivedList={setActivedList}
type={type}
/>
))}
</div>
@ -49,10 +51,12 @@ function FeedCategory({
data,
activedList,
setActivedList,
type,
}: {
data: any,
activedList: ActivedList,
setActivedList: (value: ActivedList) => void
type: string,
}) {
const [open, setOpen] = useState(false)
@ -66,6 +70,7 @@ function FeedCategory({
level: levels.folder,
id: data.id,
name: data.name,
type,
})
}}
>
@ -110,6 +115,7 @@ function FeedCategory({
level: levels.feed,
id: feed.id,
name: feed.title,
type,
})
}}
>

View File

@ -2,4 +2,5 @@ export type ActivedList = {
level: string
id: string | number
name: string
type: string
} | null