Skip to content

Commit

Permalink
Update the print function on the paid modal
Browse files Browse the repository at this point in the history
  • Loading branch information
chloehjung15 committed Nov 30, 2023
1 parent ee8dd47 commit aa7cff9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions screens/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {updateExchangeRate} from '../helper/currency';
import RNHTMLtoPDF from 'react-native-html-to-pdf';
import FileViewer from 'react-native-file-viewer';
import moment from 'moment';
import {printCiontek, printBitcoinize, onPDF} from '../helper/printing';
import {printCiontek, printBitcoinize, printSunmi, onPDF} from '../helper/printing';
import {handleStaticLNURL} from '../helper/staticLNURL';
import {CardModal} from '../components/CardModal';
let {bech32} = require('bech32');
Expand Down Expand Up @@ -715,7 +715,7 @@ function Home({navigation}): React.FC<Props> {
invoice.payment_hash,
invoice.amt,
);
} else {
} else if(printer == 'bitcoinize') {
console.log('printBitcoinize');
printBitcoinize(
invoice.description,
Expand All @@ -724,6 +724,15 @@ function Home({navigation}): React.FC<Props> {
invoice.payment_hash,
invoice.amt,
);
} else if(printer == 'sunmi') {
console.log('printSunmi');
printSunmi(
invoice.description,
invoice.timestamp,
invoice.ispaid,
invoice.payment_hash,
invoice.amt,
);
}
};

Expand Down

0 comments on commit aa7cff9

Please sign in to comment.