diff --git a/ui/components/NewsPage.tsx b/ui/components/NewsPage.tsx index 2182c9d..4b23a72 100644 --- a/ui/components/NewsPage.tsx +++ b/ui/components/NewsPage.tsx @@ -18,7 +18,9 @@ const NewsPage = () => { const fetchNews = async () => { try { console.log("Fetching news..."); - const response = await fetch("https://raw.githubusercontent.com/TomorrowMC/newsDemoData/main/data.json"); + const response = await fetch( + "https://raw.githubusercontent.com/newspedia-crew/newspedia-web/intern-change/public/data/index.json", + ); console.log("Response status:", response.status); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); @@ -72,4 +74,4 @@ const NewsPage = () => { ); }; -export default NewsPage; \ No newline at end of file +export default NewsPage; diff --git a/ui/components/Sidebar.tsx b/ui/components/Sidebar.tsx index f1b7cb3..85b2c6e 100644 --- a/ui/components/Sidebar.tsx +++ b/ui/components/Sidebar.tsx @@ -1,7 +1,7 @@ "use client"; import { cn } from "@/lib/utils"; -import { BookOpenText, Home, Search, SquarePen, Settings, Rss } from "lucide-react"; +import { BookOpenText, Home, Search, SquarePen, Settings, Newspaper } from "lucide-react"; import Link from "next/link"; import { useSelectedLayoutSegments } from "next/navigation"; import React, { useState, type ReactNode } from "react"; @@ -37,7 +37,7 @@ const Sidebar = ({ children }: { children: React.ReactNode }) => { label: "Library", }, { - icon: Rss, + icon: Newspaper, href: "/news", active: segments.includes("news"), label: "News",