{locationName} |
-
-
- {locationLoginList.map((entry: [string, number[]], index) => {
- const login = entry[0];
- const userChoices = entry[1];
- return - {login} {login === auth.login && {
- doRemoveChoices(locationKey);
- }} title='Odstranit, včetně případných podřízených jídel' className='trash-icon' icon={faTrashCan} />}
- {userChoices?.length && food ?
- {userChoices.map(foodIndex => {
- const locationsKey = Object.keys(Locations)[Number(locationKey)]
- const restaurantKey = Object.keys(Restaurants).indexOf(locationsKey);
- const restaurant = Object.values(Restaurants)[restaurantKey];
- const foodName = food[restaurant][foodIndex].name;
- return -
- {foodName}
- {login === auth.login && {
- doRemoveFoodChoice(locationKey, foodIndex);
- }} title={`Odstranit ${foodName}`} className='trash-icon' icon={faTrashCan} />}
-
- })}
- : null}
-
- }
- )}
-
+ |
+
+
+ {locationLoginList.map((entry: [string, number[]], index) => {
+ const login = entry[0];
+ const userChoices = entry[1];
+ return
+
+ {login}
+ {login === auth.login && {
+ doRemoveChoices(locationKey);
+ }} title={`Odstranit volbu ${locationName}, včetně případných zvolených jídel`} className='trash-icon' icon={faTrashCan} />}
+ |
+ {userChoices?.length && food ?
+
+ {userChoices.map(foodIndex => {
+ const locationsKey = Object.keys(Locations)[Number(locationKey)]
+ const restaurantKey = Object.keys(Restaurants).indexOf(locationsKey);
+ const restaurant = Object.values(Restaurants)[restaurantKey];
+ const foodName = food[restaurant][foodIndex].name;
+ return -
+ {foodName}
+ {login === auth.login && {
+ doRemoveFoodChoice(locationKey, foodIndex);
+ }} title={`Odstranit ${foodName}`} className='trash-icon' icon={faTrashCan} />}
+
+ })}
+
+ | : null}
+
+ }
+ )}
+
+
|
)
}