Skip to content

Commit

Permalink
fix swipe-button crasher (#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler authored Sep 9, 2024
1 parent 6da6991 commit 89cd66e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
8 changes: 4 additions & 4 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1885,16 +1885,16 @@ SPEC CHECKSUMS:
ExpoSecureStore: 060cebcb956b80ddae09821610ac1aa9e1ac74cd
EXSplashScreen: fbf0ec78e9cee911df188bf17b4fe51d15a84b87
FBLazyVector: ac12dc084d1c8ec4cc4d7b3cf1b0ebda6dab85af
fmt: 8083860262b879fc92bca720969c91bdb88ada93
glog: 77f46f3d5c779b34a09b51a92fa9e0fcab64df1c
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
glog: fdfdfe5479092de0c4bdbebedd9056951f092c4f
helium-react-native-sdk: 54928dcd95ea131437ac6e269cf5bb2d473bf57f
hermes-engine: e52d9706e7fd6078e529d8ada1af7b95946c4ce6
hermes-engine: 8c1577f3fdb849cbe7729c2e7b5abc4b845e88f8
lottie-ios: e047b1d2e6239b787cc5e9755b988869cf190494
lottie-react-native: f851c0e235f171d99083c803f728f644be1dcf65
maplibre-react-native: 3a0d9beca427ff9000d75e0974c366ecd3c5375e
MultiplatformBleAdapter: 5a6a897b006764392f9cef785e4360f54fb9477d
OneSignalXCFramework: f06edd9b146c7ac5935136a117ce2a5fdd6420f6
RCT-Folly: 36944e180e3143948e1c8b0c5eade65a3dd45142
RCT-Folly: 02617c592a293bd6d418e0a88ff4ee1f88329b47
RCTDeprecation: 3afceddffa65aee666dafd6f0116f1d975db1584
RCTRequired: ec1239bc9d8bf63e10fb92bd8b26171a9258e0c1
RCTTypeSafety: f5ecbc86c5c5fa163c05acb7a1c5012e15b5f994
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
"react-redux": "8.0.4",
"readable-stream": "3.6.0",
"redux-persist": "6.0.0",
"rn-swipe-button": "1.3.7",
"rn-swipe-button": "1.3.8",
"rxjs": "7.5.6",
"semver": "7.3.8",
"snakecase-keys": "5.4.2",
Expand Down
5 changes: 2 additions & 3 deletions src/components/SubmitButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ type Props = {
color?: string
backgroundColor?: string
} & BoxProps<Theme>

const SubmitButton = ({
color = 'blueBright500',
onSubmit,
title,
disabled,
disabled = false,
backgroundColor = 'secondaryIcon',
...boxProps
}: Props) => {
Expand All @@ -43,12 +44,10 @@ const SubmitButton = ({
paddingLeft: 8,
},
}),

[colorActual, disabled, secondaryText, surfaceSecondary],
)

return (
// eslint-disable-next-line react/jsx-props-no-spreading
<Box
backgroundColor={backgroundColor as any}

Check warning on line 52 in src/components/SubmitButton.tsx

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type
borderRadius="round"
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12553,7 +12553,7 @@ __metadata:
readable-stream: 3.6.0
redux-persist: 6.0.0
rn-nodeify: 10.3.0
rn-swipe-button: 1.3.7
rn-swipe-button: 1.3.8
rxjs: 7.5.6
semver: 7.3.8
snakecase-keys: 5.4.2
Expand Down Expand Up @@ -18981,13 +18981,13 @@ __metadata:
languageName: node
linkType: hard

"rn-swipe-button@npm:1.3.7":
version: 1.3.7
resolution: "rn-swipe-button@npm:1.3.7"
"rn-swipe-button@npm:1.3.8":
version: 1.3.8
resolution: "rn-swipe-button@npm:1.3.8"
peerDependencies:
react: ">=16.8.6"
react-native: ">=0.60.5"
checksum: 3be15b4463c738558ae111dfcca381daa4fc6daabe22692240ba50e74d7b244991e00548bfbf9e9f4c4de22220b33da142cc07a905967032ddc55384696bc0c8
checksum: b0b909b5d1f11444d30ab6a3116ca2c5e58f993ef7fa6486f7a3ad87a1e76592c5b2300b44e2c9121e285c0706b4a8b2a30002ff9b951470086d8c4bdafa3ad1
languageName: node
linkType: hard

Expand Down

0 comments on commit 89cd66e

Please sign in to comment.