From a29bdaafeb7eaa652c35adcb72ac6eb1cdeca1f9 Mon Sep 17 00:00:00 2001 From: Toby Murray Date: Mon, 4 Dec 2023 15:56:30 -0500 Subject: [PATCH] Adjust example wording "the today's date" is a bit awkward, so update it to just say "today's date". --- website/examples/modifiers-today.tsx | 4 ++-- website/test-integration/examples/modifiers-today.test.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/examples/modifiers-today.tsx b/website/examples/modifiers-today.tsx index b15198b6d5..f4901afc3e 100644 --- a/website/examples/modifiers-today.tsx +++ b/website/examples/modifiers-today.tsx @@ -3,12 +3,12 @@ import React, { useState } from 'react'; import { DayClickEventHandler, DayPicker } from 'react-day-picker'; export default function App() { - const initialFooter =

Try clicking the today’s date.

; + const initialFooter =

Try clicking today’s date.

; const [footer, setFooter] = useState(initialFooter); const handleDayClick: DayClickEventHandler = (day, modifiers) => { if (modifiers.today) { - setFooter(

You clicked the today’s date.

); + setFooter(

You clicked today’s date.

); } else { setFooter(initialFooter); } diff --git a/website/test-integration/examples/modifiers-today.test.tsx b/website/test-integration/examples/modifiers-today.test.tsx index e5ef6c4d8b..5e312d070c 100644 --- a/website/test-integration/examples/modifiers-today.test.tsx +++ b/website/test-integration/examples/modifiers-today.test.tsx @@ -39,7 +39,7 @@ describe('when another date is clicked', () => { beforeEach(async () => act(() => user.click(getDayButton(date)))); test('should update the footer', () => { expect(getTableFooter()).toHaveTextContent( - 'Try clicking the today’s date.' + 'Try clicking today’s date.' ); }); });