l-min-components 1.6.1248 → 1.6.1250

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.6.1248",
3
+ "version": "1.6.1250",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -19,7 +19,7 @@ const EnterpriseRightBar = ({ planState }) => {
19
19
  } = api();
20
20
 
21
21
  useEffect(() => {
22
- handleGetCoursesData({ status: "ending_soon", limit: 4 });
22
+ handleGetCoursesData({ status: "ending_soon", page_size: 4 });
23
23
  handleremainingSlot();
24
24
  }, []);
25
25
  const courses = coursesData?.data?.results;
@@ -8,10 +8,18 @@ import Pagination from "rc-pagination";
8
8
  * @param {number} props.totalPage - The number of items rendered in a page
9
9
  * @param {number} props.totalItem -The complete total number of item
10
10
  * @param {Function} props.onChange - A function that set the current page
11
+ * @param {boolean} props.hideOnSinglePage - A function that set the current page
11
12
  * @param {React.CSSProperties} props.style
12
13
  * @returns {JSX.Element}
13
14
  */
14
- const Paginate = ({ current, totalPage, totalItem, onChange, style }) => {
15
+ const Paginate = ({
16
+ current,
17
+ totalPage,
18
+ totalItem,
19
+ onChange,
20
+ style,
21
+ hideOnSinglePage,
22
+ }) => {
15
23
  return (
16
24
  <Container style={style}>
17
25
  <Pagination
@@ -24,6 +32,7 @@ const Paginate = ({ current, totalPage, totalItem, onChange, style }) => {
24
32
  jumpNextIcon={() => <More />}
25
33
  showLessItems
26
34
  jumpPrevIcon={() => <More />}
35
+ hideOnSinglePage={hideOnSinglePage}
27
36
  />
28
37
  </Container>
29
38
  );