Skip to content

Commit

Permalink
Fixed date in advertisements (#1097)
Browse files Browse the repository at this point in the history
  • Loading branch information
pateldivyesh1323 authored Nov 28, 2023
1 parent 9833676 commit 655b6b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/components/Advertisements/Advertisements.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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}
/>
)
Expand Down Expand Up @@ -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}
/>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function advertisementEntry({
return (
<>
<Row data-testid="AdEntry" xs={1} md={2} className="g-4">
{Array.from({ length: 4 }).map((_, idx) => (
{Array.from({ length: 1 }).map((_, idx) => (
<Col key={idx}>
<Card>
<Card.Img
Expand Down

0 comments on commit 655b6b3

Please sign in to comment.