mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +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 = [];
|
fragments = [];
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const { value, capacity = 800 } = this.props;
|
const { value, capacity = 200 } = this.props;
|
||||||
this.fragments = encodeUR(value, capacity);
|
this.fragments = encodeUR(value, capacity);
|
||||||
this.setState(
|
this.setState(
|
||||||
{
|
{
|
||||||
|
@ -27,7 +27,7 @@ export class DynamicQRCode extends Component {
|
|||||||
fragments = [];
|
fragments = [];
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const { value, capacity = 800, hideControls = true } = this.props;
|
const { value, capacity = 200, hideControls = true } = this.props;
|
||||||
try {
|
try {
|
||||||
this.fragments = encodeUR(value, capacity);
|
this.fragments = encodeUR(value, capacity);
|
||||||
this.setState(
|
this.setState(
|
||||||
|
@ -140,7 +140,7 @@ export default class SendCreate extends Component {
|
|||||||
<TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
|
<TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
<BlueCard style={styles.card}>
|
<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>
|
<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} />
|
<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]}>
|
<SafeBlueArea style={[styles.root, stylesHook.root]}>
|
||||||
<ScrollView centerContent contentContainerStyle={styles.scrollViewContent}>
|
<ScrollView centerContent contentContainerStyle={styles.scrollViewContent}>
|
||||||
<View style={[styles.modalContentShort, stylesHook.modalContentShort]}>
|
<View style={[styles.modalContentShort, stylesHook.modalContentShort]}>
|
||||||
<DynamicQRCode value={psbt.toHex()} capacity={666} />
|
<DynamicQRCode value={psbt.toHex()} />
|
||||||
{!isShowOpenScanner && (
|
{!isShowOpenScanner && (
|
||||||
<>
|
<>
|
||||||
<BlueSpacing20 />
|
<BlueSpacing20 />
|
||||||
|
@ -281,7 +281,7 @@ const PsbtWithHardwareWallet = () => {
|
|||||||
<Text testID="PSBTHex" style={styles.hidden}>
|
<Text testID="PSBTHex" style={styles.hidden}>
|
||||||
{psbt.toHex()}
|
{psbt.toHex()}
|
||||||
</Text>
|
</Text>
|
||||||
<DynamicQRCode value={psbt.toHex()} capacity={200} />
|
<DynamicQRCode value={psbt.toHex()} />
|
||||||
<BlueSpacing20 />
|
<BlueSpacing20 />
|
||||||
<SecondButton
|
<SecondButton
|
||||||
testID="PsbtTxScanButton"
|
testID="PsbtTxScanButton"
|
||||||
|
@ -79,7 +79,7 @@ const ExportMultisigCoordinationSetup = () => {
|
|||||||
<BlueText style={[styles.type, stylesHook.type]}>{wallet.getLabel()}</BlueText>
|
<BlueText style={[styles.type, stylesHook.type]}>{wallet.getLabel()}</BlueText>
|
||||||
</View>
|
</View>
|
||||||
<BlueSpacing20 />
|
<BlueSpacing20 />
|
||||||
<DynamicQRCode value={qrCodeContents.current} capacity={400} />
|
<DynamicQRCode value={qrCodeContents.current} />
|
||||||
<BlueSpacing20 />
|
<BlueSpacing20 />
|
||||||
{isShareButtonTapped ? (
|
{isShareButtonTapped ? (
|
||||||
<ActivityIndicator />
|
<ActivityIndicator />
|
||||||
|
Loading…
Reference in New Issue
Block a user