diff --git a/src/components/Advertisements/Advertisement.module.css b/src/components/Advertisements/Advertisements.module.css similarity index 100% rename from src/components/Advertisements/Advertisement.module.css rename to src/components/Advertisements/Advertisements.module.css diff --git a/src/components/Advertisements/Advertisement.test.tsx b/src/components/Advertisements/Advertisements.test.tsx similarity index 100% rename from src/components/Advertisements/Advertisement.test.tsx rename to src/components/Advertisements/Advertisements.test.tsx diff --git a/src/components/Advertisements/Advertisements.tsx b/src/components/Advertisements/Advertisements.tsx index 2d9d936d1e..7af6fd98c9 100644 --- a/src/components/Advertisements/Advertisements.tsx +++ b/src/components/Advertisements/Advertisements.tsx @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import React, { useEffect, useState } from 'react'; import PropTypes from 'react'; -import styles from './Advertisement.module.css'; +import styles from './Advertisements.module.css'; import { useQuery } from '@apollo/client'; import { ADVERTISEMENTS_GET, PLUGIN_GET } from 'GraphQl/Queries/Queries'; // PLUGIN_LIST import { useSelector } from 'react-redux'; @@ -138,8 +138,8 @@ export default function advertisements(): JSX.Element { name={ad.name} type={ad.type} orgId={ad.orgId} - startDate={ad.startDate} - endDate={ad.endDate} + startDate={new Date(ad.startDate)} + endDate={new Date(ad.endDate)} // getInstalledPlugins={getInstalledPlugins} /> ) @@ -175,8 +175,8 @@ export default function advertisements(): JSX.Element { name={ad.name} type={ad.type} orgId={ad.orgId} - startDate={ad.startDate} - endDate={ad.endDate} + startDate={new Date(ad.startDate)} + endDate={new Date(ad.endDate)} // getInstalledPlugins={getInstalledPlugins} /> ) diff --git a/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx b/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx index 36d99004fc..a98275e646 100644 --- a/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx +++ b/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx @@ -41,7 +41,7 @@ function advertisementEntry({ return ( <> - {Array.from({ length: 4 }).map((_, idx) => ( + {Array.from({ length: 1 }).map((_, idx) => (