Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arjun | revert. translations for appointments summary #346

Merged
merged 1 commit into from
Sep 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions ui/react-components/containers/AppointmentSummaryContainer.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from "react";
import GridSummary, {transformAppointmentSummaryToGridData, transformAppointmentsData} from "../components/GridSummary/GridSummary.jsx";
import DateOrWeekNavigator from "../components/DateOrWeekNavigator/DateOrWeekNavigator.jsx"
import { IntlProvider, useIntl } from "react-intl";
import { IntlProvider } from "react-intl";
import { getLocale } from "../utils/LocalStorageUtil";
import translations from '../../i18n/appointments';
import PropTypes from "prop-types";
Expand Down Expand Up @@ -61,7 +61,6 @@ class AppointmentSummaryContainer extends Component {

render() {
const {locale, messages, startDate, endDate, data, specialityData, providersData, locationData, isLoading} = this.state;
const intl = useIntl();
const { goToListView , state, fullSummary} = this.props;
const setStartDate = date => {
this.setState({ startDate: date })
Expand All @@ -75,14 +74,14 @@ class AppointmentSummaryContainer extends Component {
<DateOrWeekNavigator isWeek={true} weekStart={1} />
{ fullSummary? (
<div>
<GridSummary gridData={specialityData} weekStartDate={startDate} onClick={goToListView} gridName={intl.formatMessage({id: "APPOINTMENT_SPECIALITIES", defaultMessage: "Specialities"})}/>
<GridSummary gridData={specialityData} weekStartDate={startDate} onClick={goToListView} gridName={'Specialities'}/>
<hr/>
<GridSummary gridData={providersData} weekStartDate={startDate} onClick={goToListView} gridName={intl.formatMessage({id: "APPOINTMENT_PROVIDERS", defaultMessage: "Providers"})}/>
<GridSummary gridData={providersData} weekStartDate={startDate} onClick={goToListView} gridName={'Providers'}/>
<hr/>
<GridSummary gridData={sortBy(data, row => row.rowLabel.toLowerCase())}
weekStartDate={startDate} onClick={goToListView} gridName={intl.formatMessage({id: "APPOINTMENT_SERVICES", defaultMessage: "Services"})}/>
weekStartDate={startDate} onClick={goToListView} gridName={'Services'}/>
<hr/>
<GridSummary gridData={locationData} weekStartDate={startDate} onClick={goToListView} gridName={intl.formatMessage({id: "APPOINTMENT_LOCATIONS", defaultMessage: "Locations"})}/>
<GridSummary gridData={locationData} weekStartDate={startDate} onClick={goToListView} gridName={'Locations'}/>
<br/>
</div>) : (
<GridSummary gridData={ data } weekStartDate={startDate} onClick={goToListView}/>
Expand Down
Loading