diff --git a/src/renderer/src/components/feed-column/index.tsx b/src/renderer/src/components/feed-column/index.tsx
index d485b93d9..9140b1197 100644
--- a/src/renderer/src/components/feed-column/index.tsx
+++ b/src/renderer/src/components/feed-column/index.tsx
@@ -12,42 +12,10 @@ import { m, useSpring } from "framer-motion"
import { FeedList } from "./list"
import { ActivedList } from "@renderer/lib/types"
import { UserButton } from "@renderer/components/user-button"
+import { views } from "@renderer/lib/constants"
const lethargy = new Lethargy()
-const items = [
- {
- name: "Articles",
- icon: ,
- className: "text-amber-700",
- },
- {
- name: "Social Media",
- icon: ,
- className: "text-sky-600",
- },
- {
- name: "Pictures",
- icon: ,
- className: "text-green-600",
- },
- {
- name: "Videos",
- icon: ,
- className: "text-red-600",
- },
- {
- name: "Audios",
- icon: ,
- className: "text-purple-600",
- },
- {
- name: "Notifications",
- icon: ,
- className: "text-yellow-600",
- },
-]
-
export function FeedColumn({
activedList,
setActivedList,
@@ -73,7 +41,7 @@ export function FeedColumn({
const s = lethargy.check(event)
if (s) {
if (!wait && Math.abs(dex) > 20) {
- setActive((i) => clamp(i + dx, 0, items.length - 1))
+ setActive((i) => clamp(i + dx, 0, views.length - 1))
return true
} else {
return undefined
@@ -95,27 +63,27 @@ export function FeedColumn({
className="h-full flex flex-col"
onClick={() =>
setActivedList({
- level: "type",
- id: items[active].name,
- name: items[active].name,
- type: items[active].name,
+ level: "view",
+ id: active,
+ name: views[active].name,
+ view: active,
})
}
>