Skip to content

Commit

Permalink
fix: feed list in profile
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed May 24, 2024
1 parent bbe236d commit 48db1f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src/components/feed-column/category.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
import { m, AnimatePresence } from "framer-motion"
import { useEffect, useState } from "react"
import { levels } from "@renderer/lib/constants"
import { ActivedEntry, ActivedList } from "@renderer/lib/types"
import { ActivedList } from "@renderer/lib/types"
import { cn } from "@renderer/lib/utils"
import { Response as SubscriptionsResponse } from "@renderer/lib/queries/subscriptions"
import { showNativeMenu } from "@renderer/lib/native-menu"
Expand All @@ -28,7 +28,7 @@ export function FeedCategory({
}) {
const { activedList, setActivedList } = useOutletContext<{
activedList: ActivedList
setActivedList: (value: ActivedList) => void
setActivedList: ((value: ActivedList) => void) | null
}>()
const [open, setOpen] = useState(!data.name)
const [dialogOpen, setDialogOpen] = useState(false)
Expand Down
11 changes: 10 additions & 1 deletion src/renderer/src/pages/(main)/(context)/profile/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import { Outlet } from "react-router-dom"

export function Component() {
return <Outlet />
return (
<Outlet
context={{
activedList: null,
activedEntry: null,
setActivedEntry: () => {},
setActivedList: null,
}}
/>
)
}

0 comments on commit 48db1f1

Please sign in to comment.