diff --git a/app.json b/app.json index a6f8699..7554977 100644 --- a/app.json +++ b/app.json @@ -19,14 +19,14 @@ }, "android": { "package": "com.aaronshade.bueboka", - "versionCode": 11, + "versionCode": 12, "adaptiveIcon": { "foregroundImage": "./assets/images/icon.png", "backgroundColor": "#FFFFFF" } }, "ios": { - "buildNumber": "1.8.0", + "buildNumber": "1.9.0", "bundleIdentifier": "com.aaronshade.bueboka", "infoPlist": { "CFBundleIconName": "./assets/images/ipad.png" diff --git a/app/(tabs)/siktemerker/components/ConfirmRemoveMarks.tsx b/app/(tabs)/siktemerker/components/ConfirmRemoveMarks.tsx new file mode 100644 index 0000000..1763a02 --- /dev/null +++ b/app/(tabs)/siktemerker/components/ConfirmRemoveMarks.tsx @@ -0,0 +1,58 @@ +import { Modal, StyleSheet, Text, View } from 'react-native'; +import { Button } from '../../../../components/common'; +import { CalculatedMarks } from '../../../../types'; +import { storeLocalStorage } from '../../../../utils'; + +interface Props { + modalVisible: boolean; + setBallistics: (ballistics: CalculatedMarks | null) => void; + closeModal: () => void; +} + +const ConfirmRemoveMarks = ({ modalVisible, setBallistics, closeModal }: Props) => { + function handleRemoveMarks() { + storeLocalStorage(null, 'ballistics').then(() => { + setBallistics(null); + closeModal(); + }); + } + + return ( + + + Bekreft fjerning av siktemerker + +