From 63a1675cea87e45ca4e935742427071434e77ead Mon Sep 17 00:00:00 2001
From: Tayebwa Noah <58124613+Ndacyayisenga-droid@users.noreply.github.com>
Date: Fri, 7 Jul 2023 01:10:50 +0300
Subject: [PATCH] Download page date text is grey and difficult to read (#1962)
* Download page date text is grey and difficult to read
* fix tests
* fix tests
* fix for the market place too
---
.../__snapshots__/MarketplaceDownloadTable.test.tsx.snap | 4 ++--
src/components/MarketplaceDownloadTable/index.tsx | 2 +-
.../__snapshots__/TemurinDownloadTable.test.tsx.snap | 8 ++++----
src/components/TemurinDownloadTable/index.tsx | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/components/MarketplaceDownloadTable/__tests__/__snapshots__/MarketplaceDownloadTable.test.tsx.snap b/src/components/MarketplaceDownloadTable/__tests__/__snapshots__/MarketplaceDownloadTable.test.tsx.snap
index bc768b7c7..f044e2ea6 100644
--- a/src/components/MarketplaceDownloadTable/__tests__/__snapshots__/MarketplaceDownloadTable.test.tsx.snap
+++ b/src/components/MarketplaceDownloadTable/__tests__/__snapshots__/MarketplaceDownloadTable.test.tsx.snap
@@ -115,7 +115,7 @@ exports[`MarketplaceDownloadTable component > renders correctly 1`] = `
January 1, 2020
@@ -247,7 +247,7 @@ exports[`MarketplaceDownloadTable component > renders correctly 1`] = `
January 1, 2020
diff --git a/src/components/MarketplaceDownloadTable/index.tsx b/src/components/MarketplaceDownloadTable/index.tsx
index 581b49678..662b0da37 100644
--- a/src/components/MarketplaceDownloadTable/index.tsx
+++ b/src/components/MarketplaceDownloadTable/index.tsx
@@ -32,7 +32,7 @@ const DownloadTable = ({results}) => {
{pkg.binary.image_type == 'jdk' ? 'JDK' : 'JRE'}
- {localeDate(pkg.binary.timestamp, language)}
+ {localeDate(pkg.binary.timestamp, language)}
{(Math.floor((Date.now() - new Date(pkg.binary.timestamp).getTime()) / (1000 * 60 * 60 * 24)) > 180) &&
diff --git a/src/components/TemurinDownloadTable/__tests__/__snapshots__/TemurinDownloadTable.test.tsx.snap b/src/components/TemurinDownloadTable/__tests__/__snapshots__/TemurinDownloadTable.test.tsx.snap
index c2b46b775..13792cf29 100644
--- a/src/components/TemurinDownloadTable/__tests__/__snapshots__/TemurinDownloadTable.test.tsx.snap
+++ b/src/components/TemurinDownloadTable/__tests__/__snapshots__/TemurinDownloadTable.test.tsx.snap
@@ -107,7 +107,7 @@ exports[`TemurinDownloadTable component > renders correctly - with source 1`] =
January 1, 2020
@@ -250,7 +250,7 @@ exports[`TemurinDownloadTable component > renders correctly - with source 1`] =
January 1, 2020
@@ -476,7 +476,7 @@ exports[`TemurinDownloadTable component > renders correctly 1`] = `
January 1, 2020
@@ -619,7 +619,7 @@ exports[`TemurinDownloadTable component > renders correctly 1`] = `
January 1, 2020
diff --git a/src/components/TemurinDownloadTable/index.tsx b/src/components/TemurinDownloadTable/index.tsx
index a6391eb63..a5aec31c8 100644
--- a/src/components/TemurinDownloadTable/index.tsx
+++ b/src/components/TemurinDownloadTable/index.tsx
@@ -43,7 +43,7 @@ const TemurinDownloadTable = ({results}) => {
/>
- {localeDate(pkg.release_date, language)}
+ {localeDate(pkg.release_date, language)}