Updated date range arrow to single character #1058 (#1064)

This commit is contained in:
DeviousLab 2021-08-24 02:22:03 +04:00 committed by GitHub
parent a6cd2c9272
commit f8176abd27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -10,7 +10,7 @@ exports[`components/properties/dateRange cancel set via text input 1`] = `
type="button"
>
<span>
June 15 -&gt; June 20
June 15 June 20
</span>
</button>
</div>
@ -80,7 +80,7 @@ exports[`components/properties/dateRange set via text input 1`] = `
type="button"
>
<span>
June 15 -&gt; June 20
June 15 June 20
</span>
</button>
</div>
@ -97,7 +97,7 @@ exports[`components/properties/dateRange set via text input, es locale 1`] = `
type="button"
>
<span>
15 de junio -&gt; 20 de junio
15 de junio 20 de junio
</span>
</button>
</div>

View file

@ -155,7 +155,7 @@ describe('components/properties/dateRange', () => {
expect(container).toMatchSnapshot()
// open modal
const dayDisplay = getByRole('button', {name: 'June 15 -> June 20'})
const dayDisplay = getByRole('button', {name: 'June 15 June 20'})
userEvent.click(dayDisplay)
@ -192,7 +192,7 @@ describe('components/properties/dateRange', () => {
expect(container).toMatchSnapshot()
// open modal
const dayDisplay = getByRole('button', {name: '15 de junio -> 20 de junio'})
const dayDisplay = getByRole('button', {name: '15 de junio 20 de junio'})
userEvent.click(dayDisplay)
@ -227,7 +227,7 @@ describe('components/properties/dateRange', () => {
expect(container).toMatchSnapshot()
// open modal
const dayDisplay = getByRole('button', {name: 'June 15 -> June 20'})
const dayDisplay = getByRole('button', {name: 'June 15 June 20'})
userEvent.click(dayDisplay)
const fromInput = getByDisplayValue('June 15')

View file

@ -134,7 +134,7 @@ function DateRange(props: Props): JSX.Element {
displayValue = getDisplayDate(dateFrom)
}
if (dateTo) {
displayValue += ' -> ' + getDisplayDate(dateTo)
displayValue += ' ' + getDisplayDate(dateTo)
}
const onClose = () => {