add features for manual product editing
Android Release Build / build-android (push) Failing after 7m11s
Android Release Build / build-android (push) Failing after 7m11s
This commit is contained in:
@@ -4,7 +4,7 @@ import PrimaryButton from '../PrimaryButton';
|
||||
import SecondaryButton from '../SecondaryButton';
|
||||
import { colors } from '../../utils/constants';
|
||||
|
||||
export default function ScanErrorModal({ visible, message, onRetry, onManualSearch, onClose }) {
|
||||
export default function ScanErrorModal({ visible, message, onRetry, onManualSearch, onClose, onCreateLocalProduct }) {
|
||||
return (
|
||||
<Modal animationType="fade" onRequestClose={onClose} transparent visible={visible}>
|
||||
<View style={styles.backdrop}>
|
||||
@@ -13,6 +13,7 @@ export default function ScanErrorModal({ visible, message, onRetry, onManualSear
|
||||
<Text style={styles.message}>{message}</Text>
|
||||
<PrimaryButton label="Erneut scannen" onPress={onRetry} />
|
||||
<SecondaryButton label="Manuell eingeben" onPress={onManualSearch} />
|
||||
{onCreateLocalProduct ? <SecondaryButton label="Produkt lokal erfassen" onPress={onCreateLocalProduct} /> : null}
|
||||
</View>
|
||||
</View>
|
||||
</Modal>
|
||||
|
||||
Reference in New Issue
Block a user