@matchain/matchid-sdk-react 0.1.53-alpha.21 → 0.1.53-alpha.23

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.
@@ -757,7 +757,8 @@ function Button({
757
757
  type = "button",
758
758
  rounded = true,
759
759
  className = "",
760
- style = {}
760
+ style = {},
761
+ dataset = {}
761
762
  }) {
762
763
  const onAction = () => {
763
764
  if (!disabled && !loading) {
@@ -774,6 +775,7 @@ function Button({
774
775
  ...style
775
776
  },
776
777
  onClick: onAction,
778
+ ...dataset,
777
779
  children: loading ? /* @__PURE__ */ jsx(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
778
780
  }
779
781
  );
@@ -7956,11 +7958,11 @@ import { useInfiniteQuery as useInfiniteQuery2, useQuery as useQuery12, useQuery
7956
7958
  import last2 from "lodash/last";
7957
7959
  import { useEffect as useEffect34, useMemo as useMemo21, useRef as useRef6 } from "react";
7958
7960
  function useContactList(page_size = 10, type = "Friend") {
7959
- const { token } = useLocalStore_default();
7961
+ const { address } = useUserInfo();
7960
7962
  const limitIdRef = useRef6(0);
7961
7963
  const queryClient2 = useQueryClient5();
7962
7964
  const contactQuery = useInfiniteQuery2({
7963
- queryKey: ["matchid-contacts-list", type, token],
7965
+ queryKey: ["matchid-contacts-list", type, address],
7964
7966
  initialPageParam: 1,
7965
7967
  queryFn: async (args) => {
7966
7968
  console.log(args);
@@ -8130,4 +8132,4 @@ export {
8130
8132
  MatchProvider,
8131
8133
  useMatch
8132
8134
  };
8133
- //# sourceMappingURL=chunk-2Q5NZXUB.mjs.map
8135
+ //# sourceMappingURL=chunk-WNDUHFQX.mjs.map