Skip to content

Commit

Permalink
Code Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
itmilos committed Aug 20, 2022
1 parent 3daabdf commit 4777742
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 684 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src",
"lint": "eslint --ext .jsx, --ignore-path .gitignore --fix src",
"format": "prettier . --write"
},
"dependencies": {
Expand Down
23 changes: 1 addition & 22 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ function App() {
const [paymentNumber, setPaymentChange] = useState("");
const onPaymentNumberChange = (event) => setPaymentChange(event.target.value);

const qrModel =
`K:PR|V:01|C:1|R:${accountReceivable}|N:${receiver}|I:RSD${totalAmount}|SF:289|S:${paymentDescription}`;
const qrModel = `K:PR|V:01|C:1|R:${accountReceivable}|N:${receiver}|I:RSD${totalAmount}|P:${payer}|SF:${payCode}|S:${paymentDescription}|RO:${modelCode}${paymentNumber}`;

return (
<Container>
Expand Down Expand Up @@ -93,29 +92,9 @@ function App() {
value={paymentNumber}
whenChanged={onPaymentNumberChange}
/>
{/*<button*/}
{/* onClick={() =>*/}
{/* console.log(*/}
{/* payer,*/}
{/* paymentDescription,*/}
{/* receiver,*/}
{/* payCode,*/}
{/* currencyCode,*/}
{/* totalAmount,*/}
{/* accountReceivable,*/}
{/* modelCode,*/}
{/* paymentNumber*/}
{/* )*/}
{/* }*/}
{/*>*/}
{/* Napravi NBS QRcode*/}
{/*</button>*/}


<QRCodeSVG value={qrModel} />

</RightSide>

</Container>
);
}
Expand Down
Loading

0 comments on commit 4777742

Please sign in to comment.