From e4dfde01a2e622a5911c1a73cccea2f197ae64c7 Mon Sep 17 00:00:00 2001 From: Kakabay Date: Mon, 30 Jan 2023 19:17:13 +0500 Subject: [PATCH] News updated --- src/components/news/News.tsx | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/src/components/news/News.tsx b/src/components/news/News.tsx index c715b18..9cf44dd 100644 --- a/src/components/news/News.tsx +++ b/src/components/news/News.tsx @@ -1,34 +1,37 @@ // Modules import { Link } from 'react-router-dom'; // Images -import placeholder from '../../assets/images/placeholder.jpg'; import { ReactComponent as ArrRight } from '../../assets/icons/arrow-right.svg'; +// Components import NewsCategory from '../global/NewsCategory'; import NewsDate from '../global/NewsDate'; -const News = () => { +interface Props { + title: string; + text: string; + category: string; + date: string; + img: string; + link: string; +} + +const News = ({ title, text, category, date, img, link }: Props) => { return (
- img + img
-

- Президент Туркменистана провёл рабочее совещание по цифровой системе -

+

{title}

- - -
-
- Государственному объединению «Türkmen atlary» разрешено заключить дополнительное - соглашение с ИП «Röwşen». Государственному объединению «Türkmen atlary» разрешено - заключить дополнительное соглашение с ИП «Röwşen» + +
+
{text}
- + прочитать все