Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
nengyuanzhang committed Feb 18, 2024
2 parents 6cbf634 + 6c97249 commit b9eb079
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
11 changes: 6 additions & 5 deletions myems-web/src/components/MyEMS/common/PeriodTypeOptions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export const periodTypeOptions = [
{ value: 'yearly', label: 'Yearly' },
{ value: 'monthly', label: 'Monthly' },
{ value: 'weekly', label: 'Weekly' },
{ value: 'daily', label: 'Daily' },
{ value: 'hourly', label: 'Hourly' }];
{ value: 'yearly', label: 'Yearly' },
{ value: 'monthly', label: 'Monthly' },
{ value: 'weekly', label: 'Weekly' },
{ value: 'daily', label: 'Daily' },
{ value: 'hourly', label: 'Hourly' }
];
2 changes: 1 addition & 1 deletion myems-web/src/components/MyEMS/common/SharePie.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const getOption = (data, isDark) => {
transitionDuration: 0,
borderColor: grays['300'],
borderWidth: 1,
formatter: function (params) {
formatter: function(params) {
return `<strong>${params.data.name}:</strong> ${params.value} (${params.percent}%)`;
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,26 @@ import FalconCardHeader from '../../common/FalconCardHeader';
import { Card, CardBody, Row, Col } from 'reactstrap';
import { withTranslation } from 'react-i18next';


const defaultSorted = [{
dataField: 'name',
order: 'asc'
}];
const defaultSorted = [
{
dataField: 'name',
order: 'asc'
}
];

const WorkingDaysConsumptionTable = ({ data, columns, t }) => {
return (
<Fragment>
<Card>
<FalconCardHeader title={ t('Working Days') + ' & ' + t('Non Working Days')} className="bg-light" titleClass="text-lightSlateGray mb-0" />
<FalconCardHeader
title={t('Working Days') + ' & ' + t('Non Working Days')}
className="bg-light"
titleClass="text-lightSlateGray mb-0"
/>
<CardBody>
<Row>
<Col>
<BootstrapTable
bootstrap4
keyField="name"
data={data}
columns={columns}
defaultSorted={defaultSorted}
/>
<BootstrapTable bootstrap4 keyField="name" data={data} columns={columns} defaultSorted={defaultSorted} />
</Col>
</Row>
</CardBody>
Expand Down

0 comments on commit b9eb079

Please sign in to comment.