l-min-components 1.0.343 → 1.0.348

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.0.343",
3
+ "version": "1.0.348",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -37,7 +37,7 @@ const AppMainLayout = () => {
37
37
  useState(false);
38
38
  const [sideMenuLayout, setSideMenuLayout] = useState(true);
39
39
  const [defaultAcct, setDefaultAcct] = useState("");
40
- let centerLayoutStyle = {};
40
+ const [centerLayoutStyle, setCenterLayoutStyle] = useState({});
41
41
 
42
42
  useEffect(() => {
43
43
  if (window.location.host.includes("coming")) {
@@ -82,6 +82,7 @@ const AppMainLayout = () => {
82
82
  selectedCourseId,
83
83
  setSelectedCourseId,
84
84
  centerLayoutStyle,
85
+ setCenterLayoutStyle
85
86
  }}
86
87
  >
87
88
  <Layout
@@ -4,10 +4,12 @@ import { CalendarIcon } from "./svg/calendar";
4
4
  import { DownloadIcon } from "./svg/download";
5
5
  import CustomDatePickerHeader from "./dateNavigation";
6
6
  import { DatePickerWrapper, DateCont } from "./style";
7
+ import moment from "moment";
7
8
 
8
9
  const DatePickerCalender = ({
9
10
  borderColor,
10
11
  opacity,
12
+ dateFormat,
11
13
  ...props
12
14
  }) => {
13
15
  const [dateRange, setDateRange] = useState({
@@ -21,7 +23,7 @@ const DatePickerCalender = ({
21
23
  <DatePicker
22
24
  selected={dateRange.endDate}
23
25
  endDate={dateRange.endDate}
24
- dateFormat="d MMM yyyy"
26
+ dateFormat={dateFormat ? dateFormat : "d MMM yyyy"}
25
27
  renderCustomHeader={({ date, decreaseMonth, increaseMonth }) => (
26
28
  <CustomDatePickerHeader selected={date} onMonthChange={(value) => {
27
29
  if (value === -1) {