Refactor team account statistics and health details
- Simplified the TeamAccountStatistics component by removing unused code and integrating translation for health details. - Updated the load-team-account-health-details to calculate average BMI based on member parameters. - Adjusted the billing page to correctly reference the number of team members. - Enhanced the main account page to pass member parameters to the Dashboard component. - Modified the admin account page to destructure member data from the API response. - Updated the TeamAccountsApi to return member parameters alongside member data. - Added new translations for health details in Estonian locale.
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
{
|
||||
"home": {
|
||||
"pageTitle": "Ülevaade",
|
||||
"headerTitle": "{{companyName}} tervise ülevaade"
|
||||
"headerTitle": "{{companyName}} tervise ülevaade",
|
||||
"healthDetails": "Ettevõtte terviseandmed",
|
||||
"membersSettingsButtonTitle": "Halda töötajaid",
|
||||
"membersSettingsButtonDescription": "Lisa, muuda või eemalda töötajaid.",
|
||||
"membersBillingButtonTitle": "Halda eelarvet",
|
||||
"membersBillingButtonDescription": "Vali kuidas soovid eelarvet töötajate vahel jagada."
|
||||
},
|
||||
"settings": {
|
||||
"pageTitle": "Settings",
|
||||
@@ -24,8 +29,26 @@
|
||||
"title": "Ettevõtte Tervisekassa seis",
|
||||
"balance": "Eelarve jääk {{balance}}",
|
||||
"volume": "Eelarve maht {{volume}}"
|
||||
},
|
||||
"data": {
|
||||
"reservations": "{{value}} broneeringut",
|
||||
"analysis": "Analüüsid",
|
||||
"doctorsAndSpecialists": "Eriarstid ja spetsialistid",
|
||||
"researches": "Uuringud",
|
||||
"healthResearchPlans": "Terviseuuringute paketid",
|
||||
"serviceUsage": "{{value}} teenuse kasutust",
|
||||
"serviceSum": "Teenuste summa"
|
||||
}
|
||||
},
|
||||
"healthDetails": {
|
||||
"women": "Naised",
|
||||
"men": "Mehed",
|
||||
"avgAge": "Keskmine vanus",
|
||||
"bmi": "KMI",
|
||||
"cholesterol": "Üldkolesterool",
|
||||
"vitaminD": "Vitamiin D",
|
||||
"smokers": "Suitsetajad"
|
||||
},
|
||||
"yourTeams": "Your Companies ({{teamsCount}})",
|
||||
"createTeam": "Create a Company",
|
||||
"creatingTeam": "Creating Company...",
|
||||
|
||||
Reference in New Issue
Block a user