@selfcommunity/react-ui 0.7.9-alpha.52 → 0.7.9-alpha.53

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.
@@ -7,7 +7,7 @@ export interface GroupsProps {
7
7
  className?: string;
8
8
  /**
9
9
  * Feed API Query Params
10
- * @default [{'limit': 10, 'offset': 0}]
10
+ * @default [{'limit': 20, 'offset': 0}]
11
11
  */
12
12
  endpointQueryParams?: Record<string, string | number>;
13
13
  /**
@@ -67,7 +67,7 @@ function Groups(inProps) {
67
67
  props: inProps,
68
68
  name: constants_1.PREFIX
69
69
  });
70
- const { endpointQueryParams = { limit: Pagination_1.DEFAULT_PAGINATION_LIMIT, offset: Pagination_1.DEFAULT_PAGINATION_OFFSET }, className, GroupComponentProps = { variant: 'outlined', ButtonBaseProps: { disableRipple: true, component: material_1.Box } }, showFilters = false, filters, general = true } = props, rest = tslib_1.__rest(props, ["endpointQueryParams", "className", "GroupComponentProps", "showFilters", "filters", "general"]);
70
+ const { endpointQueryParams = { limit: 20, offset: Pagination_1.DEFAULT_PAGINATION_OFFSET }, className, GroupComponentProps = { variant: 'outlined', ButtonBaseProps: { disableRipple: true, component: material_1.Box } }, showFilters = false, filters, general = true } = props, rest = tslib_1.__rest(props, ["endpointQueryParams", "className", "GroupComponentProps", "showFilters", "filters", "general"]);
71
71
  // STATE
72
72
  const [groups, setGroups] = (0, react_1.useState)([]);
73
73
  const [loading, setLoading] = (0, react_1.useState)(true);
@@ -7,7 +7,7 @@ export interface GroupsProps {
7
7
  className?: string;
8
8
  /**
9
9
  * Feed API Query Params
10
- * @default [{'limit': 10, 'offset': 0}]
10
+ * @default [{'limit': 20, 'offset': 0}]
11
11
  */
12
12
  endpointQueryParams?: Record<string, string | number>;
13
13
  /**
@@ -13,7 +13,7 @@ import { useThemeProps } from '@mui/system';
13
13
  import HiddenPlaceholder from '../../shared/HiddenPlaceholder';
14
14
  import { PREFIX } from './constants';
15
15
  import Group from '../Group';
16
- import { DEFAULT_PAGINATION_LIMIT, DEFAULT_PAGINATION_OFFSET } from '../../constants/Pagination';
16
+ import { DEFAULT_PAGINATION_OFFSET } from '../../constants/Pagination';
17
17
  import InfiniteScroll from '../../shared/InfiniteScroll';
18
18
  const classes = {
19
19
  root: `${PREFIX}-root`,
@@ -65,7 +65,7 @@ export default function Groups(inProps) {
65
65
  props: inProps,
66
66
  name: PREFIX
67
67
  });
68
- const { endpointQueryParams = { limit: DEFAULT_PAGINATION_LIMIT, offset: DEFAULT_PAGINATION_OFFSET }, className, GroupComponentProps = { variant: 'outlined', ButtonBaseProps: { disableRipple: true, component: Box } }, showFilters = false, filters, general = true } = props, rest = __rest(props, ["endpointQueryParams", "className", "GroupComponentProps", "showFilters", "filters", "general"]);
68
+ const { endpointQueryParams = { limit: 20, offset: DEFAULT_PAGINATION_OFFSET }, className, GroupComponentProps = { variant: 'outlined', ButtonBaseProps: { disableRipple: true, component: Box } }, showFilters = false, filters, general = true } = props, rest = __rest(props, ["endpointQueryParams", "className", "GroupComponentProps", "showFilters", "filters", "general"]);
69
69
  // STATE
70
70
  const [groups, setGroups] = useState([]);
71
71
  const [loading, setLoading] = useState(true);