small changes
This commit is contained in:
parent
676e2231b0
commit
858dc41ebb
2 changed files with 6 additions and 4 deletions
|
@ -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}`);
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue