From 0d13cd193955c253354015d138298a2ea7410ede Mon Sep 17 00:00:00 2001 From: Shanks0465 Date: Mon, 2 Sep 2024 04:06:47 +0530 Subject: [PATCH] Switched News Link Component --- frontend/components/NewsSection.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/components/NewsSection.tsx b/frontend/components/NewsSection.tsx index 7256f0f..72b20a7 100644 --- a/frontend/components/NewsSection.tsx +++ b/frontend/components/NewsSection.tsx @@ -1,11 +1,12 @@ import React from "react"; -import { Box, Flex, Text, Heading, VStack, Link } from "@chakra-ui/react"; +import { Box, Flex, Text, Heading, VStack } from "@chakra-ui/react"; import { useQuery } from "react-query"; import { API_URL } from "@/app/config"; import axios from "axios"; import { useEffect, useState } from "react"; import Image from "next/image"; import { imagePrefix } from "@/app/config"; +import Link from "next/link"; const fetchNews = async () => { try { @@ -65,11 +66,8 @@ const News = () => { {card.title} {card.description} - - Read More + + Read More