Skip to content

Commit

Permalink
fix: bug ouverture consulter notre aide (#5331)
Browse files Browse the repository at this point in the history
* fix: bug ouverture consulter notre aide

* chore: review

---------

Co-authored-by: Victor Zeinstra <[email protected]>
  • Loading branch information
Viczei and Victor Zeinstra authored Aug 23, 2023
1 parent 4c4725a commit f321469
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ export const SearchAgreementInput = ({
alwaysRenderSuggestions={false}
onSuggestionSelected={onSelect}
onSuggestionsFetchRequested={onSearch}
onSuggestionsClearRequested={onClear}
shouldRenderSuggestions={(value, reason) => {
if (reason === "escape-pressed") {
onClear();
}
return true;
}}
getSuggestionValue={(suggestion) => suggestion}
renderSuggestion={renderSuggestion}
renderSuggestionsContainer={renderSuggestionsContainer}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const AgreementNoResult = ({ onUserAction, state }: Props): JSX.Element => {
)}
>
<Title stripe="none" as="h3">
Vous ne trouvez pas convention collective&nbsp;?
Vous ne trouvez pas votre convention collective&nbsp;?
</Title>
<p>Il peut y avoir plusieurs explications à cela&nbsp;:</p>
<ul>
Expand All @@ -108,7 +108,7 @@ const AgreementNoResult = ({ onUserAction, state }: Props): JSX.Element => {
<br />
<Link
passHref
href={`/${SOURCES.TOOLS}/convention-collective#entreprise`}
href={`/${SOURCES.TOOLS}/convention-collective/entreprise`}
legacyBehavior
>
<Button as="a" variant="link" narrow small>
Expand Down

0 comments on commit f321469

Please sign in to comment.