mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 21:35:21 +01:00
REF: decrease animated QR codes density
This commit is contained in:
parent
1248dfe3a6
commit
c878f6a812
@ -1807,7 +1807,7 @@ export class DynamicQRCode extends Component {
|
||||
fragments = [];
|
||||
|
||||
componentDidMount() {
|
||||
const { value, capacity = 800 } = this.props;
|
||||
const { value, capacity = 200 } = this.props;
|
||||
this.fragments = encodeUR(value, capacity);
|
||||
this.setState(
|
||||
{
|
||||
|
@ -27,7 +27,7 @@ export class DynamicQRCode extends Component {
|
||||
fragments = [];
|
||||
|
||||
componentDidMount() {
|
||||
const { value, capacity = 800, hideControls = true } = this.props;
|
||||
const { value, capacity = 200, hideControls = true } = this.props;
|
||||
try {
|
||||
this.fragments = encodeUR(value, capacity);
|
||||
this.setState(
|
||||
|
@ -140,7 +140,7 @@ export default class SendCreate extends Component {
|
||||
<TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
|
||||
<ScrollView>
|
||||
<BlueCard style={styles.card}>
|
||||
{this.state.showAnimatedQr && this.state.psbt ? <DynamicQRCode value={this.state.psbt.toHex()} capacity={666} /> : null}
|
||||
{this.state.showAnimatedQr && this.state.psbt ? <DynamicQRCode value={this.state.psbt.toHex()} /> : null}
|
||||
<BlueText style={styles.cardText}>{loc.send.create_this_is_hex}</BlueText>
|
||||
<TextInput testID="TxhexInput" style={styles.cardTx} height={72} multiline editable value={this.state.tx} />
|
||||
|
||||
|
@ -72,7 +72,7 @@ const PsbtMultisigQRCode = () => {
|
||||
<SafeBlueArea style={[styles.root, stylesHook.root]}>
|
||||
<ScrollView centerContent contentContainerStyle={styles.scrollViewContent}>
|
||||
<View style={[styles.modalContentShort, stylesHook.modalContentShort]}>
|
||||
<DynamicQRCode value={psbt.toHex()} capacity={666} />
|
||||
<DynamicQRCode value={psbt.toHex()} />
|
||||
{!isShowOpenScanner && (
|
||||
<>
|
||||
<BlueSpacing20 />
|
||||
|
@ -281,7 +281,7 @@ const PsbtWithHardwareWallet = () => {
|
||||
<Text testID="PSBTHex" style={styles.hidden}>
|
||||
{psbt.toHex()}
|
||||
</Text>
|
||||
<DynamicQRCode value={psbt.toHex()} capacity={200} />
|
||||
<DynamicQRCode value={psbt.toHex()} />
|
||||
<BlueSpacing20 />
|
||||
<SecondButton
|
||||
testID="PsbtTxScanButton"
|
||||
|
@ -79,7 +79,7 @@ const ExportMultisigCoordinationSetup = () => {
|
||||
<BlueText style={[styles.type, stylesHook.type]}>{wallet.getLabel()}</BlueText>
|
||||
</View>
|
||||
<BlueSpacing20 />
|
||||
<DynamicQRCode value={qrCodeContents.current} capacity={400} />
|
||||
<DynamicQRCode value={qrCodeContents.current} />
|
||||
<BlueSpacing20 />
|
||||
{isShareButtonTapped ? (
|
||||
<ActivityIndicator />
|
||||
|
Loading…
Reference in New Issue
Block a user