From 2044ae8b20e59bfe969182286a858687d369f207 Mon Sep 17 00:00:00 2001 From: Miguel Alexandre Date: Thu, 19 Aug 2021 13:40:02 +0200 Subject: [PATCH] Render "Last 24h" instead of "For 24h" Signed-off-by: Miguel Alexandre --- .../src/components/SentryIssuesTable/SentryIssuesTable.test.tsx | 2 +- .../src/components/SentryIssuesTable/SentryIssuesTable.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sentry/src/components/SentryIssuesTable/SentryIssuesTable.test.tsx b/plugins/sentry/src/components/SentryIssuesTable/SentryIssuesTable.test.tsx index a438394388..85e87dbc28 100644 --- a/plugins/sentry/src/components/SentryIssuesTable/SentryIssuesTable.test.tsx +++ b/plugins/sentry/src/components/SentryIssuesTable/SentryIssuesTable.test.tsx @@ -86,6 +86,6 @@ describe('SentryIssuesTable', () => { , ); - expect(await table.findByText('For 24h')).toBeInTheDocument(); + expect(await table.findByText('Last 24h')).toBeInTheDocument(); }); }); diff --git a/plugins/sentry/src/components/SentryIssuesTable/SentryIssuesTable.tsx b/plugins/sentry/src/components/SentryIssuesTable/SentryIssuesTable.tsx index 1ea53a938e..637f2c4355 100644 --- a/plugins/sentry/src/components/SentryIssuesTable/SentryIssuesTable.tsx +++ b/plugins/sentry/src/components/SentryIssuesTable/SentryIssuesTable.tsx @@ -71,7 +71,7 @@ const SentryIssuesTable = ({ columns={columns} options={{ padding: 'dense', paging: true, search: false, pageSize: 5 }} title="Sentry issues" - subtitle={statsFor ? `For ${statsFor}` : undefined} + subtitle={statsFor ? `Last ${statsFor}` : undefined} data={sentryIssues} /> );