diff --git a/docs/sliver-docs/pages/docs/index.tsx b/docs/sliver-docs/pages/docs/index.tsx index 7f6cb8e9fc..5ba88f334a 100644 --- a/docs/sliver-docs/pages/docs/index.tsx +++ b/docs/sliver-docs/pages/docs/index.tsx @@ -1,3 +1,4 @@ +import { Themes } from "@/util/themes"; import { Card, CardBody, @@ -8,6 +9,7 @@ import { } from "@nextui-org/react"; import { useQuery } from "@tanstack/react-query"; import { NextPage } from "next"; +import { useTheme } from "next-themes"; import React from "react"; import Markdown from "react-markdown"; import remarkGfm from "remark-gfm"; @@ -22,6 +24,8 @@ type Docs = { }; const DocsIndexPage: NextPage = () => { + const { theme } = useTheme(); + const { data: docs, isLoading } = useQuery({ queryKey: ["docs"], queryFn: async (): Promise => { @@ -48,7 +52,7 @@ const DocsIndexPage: NextPage = () => {
- Sliver Docs + Topics
{
- + {name} - + {markdown}