Skip to content

Commit

Permalink
Arjun | revert. translations for appointments summary (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjun-Go authored Sep 28, 2024
1 parent d16cc21 commit 28bd958
Showing 1 changed file with 5 additions and 6 deletions.
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

0 comments on commit 28bd958

Please sign in to comment.