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 = () => {
- +