@orderly.network/affiliate 2.8.10-alpha.0 → 2.8.11-alpha.0

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/dist/index.mjs CHANGED
@@ -530,12 +530,10 @@ var AutoHideText = (props) => {
530
530
  const [visibleChars, setVisibleChars] = useState(0);
531
531
  useEffect(() => {
532
532
  const calculateVisibleChars = () => {
533
- if (props.visibleCount !== void 0)
534
- return;
533
+ if (props.visibleCount !== void 0) return;
535
534
  if (containerRef.current && textRef.current) {
536
535
  const containerWidth = containerRef.current.clientWidth;
537
- if (containerWidth == lastContainerWidth.current)
538
- return;
536
+ if (containerWidth == lastContainerWidth.current) return;
539
537
  lastContainerWidth.current = containerWidth;
540
538
  const textElement = textRef.current;
541
539
  const textContent = text;
@@ -843,8 +841,7 @@ var useReferralLinkScript = () => {
843
841
  return firstCode?.code;
844
842
  }, [firstCode]);
845
843
  const referralLink = useMemo(() => {
846
- if (!firstCode)
847
- return "";
844
+ if (!firstCode) return "";
848
845
  return generateReferralLink(referralLinkUrl, firstCode.code);
849
846
  }, [firstCode]);
850
847
  const earn = useMemo(() => {
@@ -3358,8 +3355,7 @@ var useSummaryScript2 = () => {
3358
3355
  ];
3359
3356
  const { referralInfo, userVolume } = useReferralContext();
3360
3357
  const rebates = useMemo(() => {
3361
- if (!referralInfo)
3362
- return 0;
3358
+ if (!referralInfo) return 0;
3363
3359
  switch (period) {
3364
3360
  case "All":
3365
3361
  return referralInfo.referee_info.total_referee_rebate;
@@ -3372,8 +3368,7 @@ var useSummaryScript2 = () => {
3372
3368
  }
3373
3369
  }, [referralInfo, period]);
3374
3370
  const vol = useMemo(() => {
3375
- if (!userVolume)
3376
- return void 0;
3371
+ if (!userVolume) return void 0;
3377
3372
  switch (period) {
3378
3373
  case "All":
3379
3374
  return userVolume.all_volume;
@@ -3714,8 +3709,7 @@ var useRebatesScript = () => {
3714
3709
  endDate: dateRange?.from
3715
3710
  });
3716
3711
  const dataSource = useMemo(() => {
3717
- if (typeof distributionData === "undefined")
3718
- return [];
3712
+ if (typeof distributionData === "undefined") return [];
3719
3713
  return distributionData.map((item) => {
3720
3714
  const createdTime = item.date;
3721
3715
  const volume = dailyVolume?.filter((item2) => {
@@ -4069,5 +4063,5 @@ var AffiliateLayoutWidget = (props) => {
4069
4063
  };
4070
4064
 
4071
4065
  export { AffiliateLayoutWidget, dashboard_exports as Dashboard, ReferralContext, ReferralProvider, TabTypes, useReferralContext };
4072
- //# sourceMappingURL=out.js.map
4066
+ //# sourceMappingURL=index.mjs.map
4073
4067
  //# sourceMappingURL=index.mjs.map