Skip to content

Commit

Permalink
feat: get list type
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Apr 16, 2024
1 parent 4b950c8 commit a9414d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/renderer/src/components/feed-column/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function FeedList({
level: levels.type,
id: type,
name: levels.type,
type,
})
}}
>
Expand All @@ -39,6 +40,7 @@ export function FeedList({
data={category}
activedList={activedList}
setActivedList={setActivedList}
type={type}
/>
))}
</div>
Expand All @@ -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)

Expand All @@ -66,6 +70,7 @@ function FeedCategory({
level: levels.folder,
id: data.id,
name: data.name,
type,
})
}}
>
Expand Down Expand Up @@ -110,6 +115,7 @@ function FeedCategory({
level: levels.feed,
id: feed.id,
name: feed.title,
type,
})
}}
>
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export type ActivedList = {
level: string
id: string | number
name: string
type: string
} | null

0 comments on commit a9414d2

Please sign in to comment.