324 add search records as a fallback action in case of no results (#9976)

Closes https://github.com/twentyhq/core-team-issues/issues/324

Fixed typos: 'No results' is used when multiple results are expected and
'No result' is used when only one result is expected.


https://github.com/user-attachments/assets/e3655ced-465a-44b1-92af-63878b9d8a94
This commit is contained in:
Raphaël Bosi
2025-02-03 15:54:24 +01:00
committed by GitHub
parent eb0762dc58
commit 49e4484937
10 changed files with 81 additions and 12 deletions

View File

@ -42,7 +42,7 @@ export const CurrencyPickerDropdownSelect = ({
<DropdownMenuSeparator />
<DropdownMenuItemsContainer hasMaxHeight>
{filteredCurrencies.length === 0 ? (
<MenuItem text="No result" />
<MenuItem text="No results" />
) : (
<>
{selectedCurrency && (

View File

@ -55,7 +55,7 @@ export const PhoneCountryPickerDropdownSelect = ({
<DropdownMenuSeparator />
<DropdownMenuItemsContainer hasMaxHeight>
{filteredCountries?.length === 0 ? (
<MenuItem text="No result" />
<MenuItem text="No results" />
) : (
<>
{selectedCountry && (