@jobber/components-native 0.91.2 → 0.91.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.91.2",
3
+ "version": "0.91.3",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -94,5 +94,5 @@
94
94
  "react-native-safe-area-context": "^5.4.0",
95
95
  "react-native-svg": ">=12.0.0"
96
96
  },
97
- "gitHead": "89fec0b77276ec2b2fc80f4fc4ec2f6d207c1ac6"
97
+ "gitHead": "4b120bbb1789aa1b6b9a8eaf157be90d4ea15efc"
98
98
  }
@@ -9,7 +9,7 @@ import { useAtlantisI18n } from "../hooks/useAtlantisI18n";
9
9
  export function ButtonGroup({ children, showCancelInBottomSheet, bottomSheetHeading, onOpenBottomSheet, onCloseBottomSheet, allowTapWhenOffline = false, }) {
10
10
  const { t } = useAtlantisI18n();
11
11
  const { handlePress } = usePreventTapWhenOffline();
12
- const secondaryActionsRef = useRef();
12
+ const secondaryActionsRef = useRef(null);
13
13
  const { primaryActions, secondaryActions } = getActions(children);
14
14
  const styles = useStyles();
15
15
  return (React.createElement(View, { style: styles.buttonGroup },
@@ -26,8 +26,8 @@ function ContentOverlayInternal({ children, title, accessibilityLabel, fullScree
26
26
  const isFullScreenOrTopPosition = fullScreen || (!adjustToContentHeight && position === "top");
27
27
  const shouldShowDismiss = showDismiss || isScreenReaderEnabled || isFullScreenOrTopPosition;
28
28
  const [showHeaderShadow, setShowHeaderShadow] = useState(false);
29
- const overlayHeader = useRef();
30
- const internalRef = useRef();
29
+ const overlayHeader = useRef(null);
30
+ const internalRef = useRef(null);
31
31
  const [modalizeMethods, setModalizeMethods] = useState();
32
32
  const callbackInternalRef = useCallback((instance) => {
33
33
  if (instance && !internalRef.current) {
@@ -124,9 +124,7 @@ function ContentOverlayInternal({ children, title, accessibilityLabel, fullScree
124
124
  : styles.titleWithoutDismiss,
125
125
  ] },
126
126
  React.createElement(Heading, { level: "subtitle", variation: loading ? "subdued" : "heading", align: "start" }, title)),
127
- shouldShowDismiss && (React.createElement(View, { style: styles.dismissButton,
128
- // @ts-expect-error tsc-ci
129
- ref: overlayHeader, accessibilityLabel: accessibilityLabel || closeOverlayA11YLabel, accessible: true },
127
+ shouldShowDismiss && (React.createElement(View, { style: styles.dismissButton, ref: overlayHeader, accessibilityLabel: accessibilityLabel || closeOverlayA11YLabel, accessible: true },
130
128
  React.createElement(IconButton, { name: "cross", customColor: loading ? tokens["color-disabled"] : tokens["color-heading"], onPress: () => onCloseController(), accessibilityLabel: closeOverlayA11YLabel, testID: "ATL-Overlay-CloseButton" }))))));
131
129
  }
132
130
  function renderChildren() {
@@ -14,8 +14,8 @@ import { useAtlantisTheme } from "../AtlantisThemeContext";
14
14
  export function Menu({ menuOptions, customActivator }) {
15
15
  const [open, setOpen] = useState(false);
16
16
  const [menuPosition, setMenuPosition] = useState();
17
- const activatorLayout = useRef();
18
- const menuButtonRef = useRef();
17
+ const activatorLayout = useRef(null);
18
+ const menuButtonRef = useRef(null);
19
19
  const screenInfo = useScreenInformation();
20
20
  const { t } = useAtlantisI18n();
21
21
  const styles = useStyles();