Skip to content

Commit

Permalink
fix bug part 2 close #33
Browse files Browse the repository at this point in the history
  • Loading branch information
robindemourat committed Jun 7, 2024
1 parent 2d1b4f7 commit f384ebc
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ export default function PartDesEtrangersDansNavigation({
data: inputData,
width,
height,
lang
lang = 'fr'
}) {

const flagToNationality = useMemo(() => ({
// const flagToNationality = useMemo(() => ({
const flagToNationality = {
'Genoese': 'gênois',
'Venitian': 'vénitiens',
'Tuscan': 'toscans',
Expand Down Expand Up @@ -44,7 +45,8 @@ const flagToNationality = useMemo(() => ({
'Imperial Mediterranean': translate('PartDesEtrangersDansNavigation', 'imperiaux-mediterrannee', lang),
// 'Imperial Mediterranean': 'impériaux de la méditerranée',
'Swedish': translate('PartDesEtrangersDansNavigation', 'suédois', lang),
}), [lang]);
};
// }), [lang]);

// const comparisonData = useMemo(() => inputData.get('share_of_strangers_1787_french_ports.csv')
const comparisonData = (inputData.get('share_of_strangers_1787_french_ports.csv') || [])
Expand Down

0 comments on commit f384ebc

Please sign in to comment.