Refactor CountryMap and CardFull components for ISO code handling

- Updated CardFull to ensure ISO codes are trimmed and uppercased before passing to CountryMap.
- Removed unused countryNames prop from CountryMap and adjusted highlighting logic to use data-iso attributes for country identification.
- Enhanced GeographyQuiz to prioritize ISO code checks and normalize values for consistency.
- Cleaned up code by removing legacy attribute handling and ensuring robust attribute management during country highlighting.
This commit is contained in:
sHa
2025-08-16 00:01:01 +03:00
parent 3ee3ffeb17
commit fba47c142c
4 changed files with 683 additions and 785 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 221 KiB

After

Width:  |  Height:  |  Size: 223 KiB