You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
617 B
1 lines
617 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.default=function(a){var r=a.state,n=a.weekends,t=a.handlePropsChange,i=e.useRef({});return e.useEffect((function(){var e={gregorian:[0,6],persian:[6],arabic:[0,6],indian:[0]},a=JSON.stringify(n);i.current.stringWeekends===a&&i.current.calendar===r.date.calendar.name||(i.current={stringWeekends:a,calendar:r.date.calendar.name},t({mapDays:function(a){var r=a.date;if((Array.isArray(n)?n:e[r.calendar.name]).includes(r.weekDay.index))return{className:"highlight highlight-red"}}}))}),[r.date.calendar.name,n,t]),null};
|
|
|