-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: active les items dans le menu et le megamenu selon la route (#379)
* fix: active les items dans le menu et le megamenu selon la route * fix: checks sonar & tests * fix: tests * refactor: suppression de trim() (isStringAreEquals) --------- Co-authored-by: PassCulture <passculture@macstudelaurent.home>
- Loading branch information
1 parent
64b72da
commit 84b0d6d
Showing
4 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const isStringAreEquals = (str1: string, str2: string): boolean => { | ||
if (str1 === undefined || str2 === undefined) return false | ||
if (str1.trim().toLocaleLowerCase() === str2.trim().toLocaleLowerCase()) | ||
return true | ||
return false | ||
} |