From d228e8996ac6a649bd4c8506a8b0e7dbe1f0ce1c Mon Sep 17 00:00:00 2001 From: Kakabay Date: Wed, 1 Feb 2023 13:40:26 +0500 Subject: [PATCH] News scroll title state added --- src/components/global/NewsScroll.tsx | 11 +++++++++-- src/pages/Category.tsx | 10 +++++----- src/pages/Main.tsx | 2 +- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/components/global/NewsScroll.tsx b/src/components/global/NewsScroll.tsx index cabde25..2100165 100644 --- a/src/components/global/NewsScroll.tsx +++ b/src/components/global/NewsScroll.tsx @@ -4,11 +4,18 @@ import SectionTitle from './SectionTitle'; // Images import placeholder from '../../assets/images/placeholder.jpg'; -const NewsScroll = () => { +// Interface +interface Props { + state: boolean; +} + +const NewsScroll = ({ state }: Props) => { return (
- + {state === true ? ( + + ) : null}
{ return ( @@ -13,7 +13,7 @@ const Category = () => {
- +