diff --git a/api/queries.ts b/api/queries.ts index 9240dbd..776ed2c 100644 --- a/api/queries.ts +++ b/api/queries.ts @@ -37,7 +37,7 @@ export class Queries { } public static async getlastNews(): Promise { - return await fetch(`${baseUrl.NEWS_SRC}${routes.news}?locale=tm&count=5`, { + return await fetch(`https://turkmentv.gov.tm/v2/api/slider?type=small3`, { next: { revalidate: 3600 }, }).then((res) => res.json().then((res) => res as NewsModel)); } diff --git a/app/(main)/sms/layout.tsx b/app/(main)/sms/layout.tsx index 4e28d97..94ea0e2 100644 --- a/app/(main)/sms/layout.tsx +++ b/app/(main)/sms/layout.tsx @@ -1,8 +1,7 @@ 'use client'; // src/app/layout.tsx import { AuthProvider } from '@/context/AuthContext'; -import { SmsContext, SmsProvider } from '@/context/SmsContext'; -import { PropsWithChildren, useState } from 'react'; +import { PropsWithChildren } from 'react'; export default function SmsLayout({ children }: PropsWithChildren) { return ( diff --git a/components/home/SmallSwiperNews.tsx b/components/home/SmallSwiperNews.tsx index ba029be..f5db95d 100644 --- a/components/home/SmallSwiperNews.tsx +++ b/components/home/SmallSwiperNews.tsx @@ -42,7 +42,7 @@ const SmallSwiperNews = () => {