Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into dev
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
commit
641dad2ced
|
@ -204,7 +204,7 @@ export default class Calendar extends Component {
|
||||||
return event.dated >= dated && event.dated <= dated;
|
return event.dated >= dated && event.dated <= dated;
|
||||||
});
|
});
|
||||||
|
|
||||||
const params = {dated: dated, events: events, style: {}};
|
const params = {dated: dated, events: events /**/, style: {}};
|
||||||
const isSaturday = dated.getDay() === 6;
|
const isSaturday = dated.getDay() === 6;
|
||||||
const isSunday = dated.getDay() === 0;
|
const isSunday = dated.getDay() === 0;
|
||||||
const isCurrentMonth = dated.getMonth() === this.currentMonth.getMonth();
|
const isCurrentMonth = dated.getMonth() === this.currentMonth.getMonth();
|
||||||
|
@ -290,13 +290,15 @@ export default class Calendar extends Component {
|
||||||
renderStyle(style) {
|
renderStyle(style) {
|
||||||
const normalizedStyle = {};
|
const normalizedStyle = {};
|
||||||
|
|
||||||
const properties = Object.keys(style);
|
if (style) {
|
||||||
properties.forEach(attribute => {
|
const properties = Object.keys(style);
|
||||||
const attrName = attribute.split(/(?=[A-Z])/).
|
properties.forEach(attribute => {
|
||||||
join('-').toLowerCase();
|
const attrName = attribute.split(/(?=[A-Z])/).
|
||||||
|
join('-').toLowerCase();
|
||||||
|
|
||||||
normalizedStyle[attrName] = style[attribute];
|
normalizedStyle[attrName] = style[attribute];
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return normalizedStyle;
|
return normalizedStyle;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue