minor UI update

This commit is contained in:
sairaj mote 2022-05-20 15:37:16 +05:30
parent c4c4ae2d1e
commit c5268e5ab1
6 changed files with 6 additions and 4 deletions

View File

@ -801,6 +801,7 @@ ul {
.wallet-action,
.integrated-action-button {
color: inherit;
font-weight: 500;
}
.wallet-action .icon:first-of-type,
.integrated-action-button .icon:first-of-type {

2
css/main.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -748,6 +748,7 @@ ul {
.wallet-action,
.integrated-action-button {
color: inherit;
font-weight: 500;
.icon:first-of-type {
height: 2.5rem;
width: 2.5rem;

View File

@ -885,7 +885,7 @@
<div id="withdraw_wallet_process">
<sm-form>
<div class="grid gap-0-5">
<h4>Transfer to bank</h4>
<h4>Withdraw</h4>
<p>Money will be sent to your bank account linked to selected UPI ID</p>
</div>
<sm-input id="send_cashier_amount" type="number" min="1" error-text="Amount should al least be ₹1"

View File

@ -477,7 +477,7 @@ const render = {
walletRequestCard(details) {
const { time, message: { mode, amount }, note, tag, vectorClock } = details;
const clone = getRef('wallet_request_template').content.cloneNode(true).firstElementChild.firstElementChild;
const type = mode === 'cash-to-token' ? 'Wallet top-up' : 'Transfer to bank';
const type = mode === 'cash-to-token' ? 'Wallet top-up' : 'Withdraw';
let status = tag ? tag : (note ? 'REJECTED' : "PENDING");
clone.classList.add(status.toLowerCase());
clone.classList.add(mode === 'cash-to-token' ? 'added' : 'withdrawn');

View File

@ -450,7 +450,7 @@ async function showPage(targetPage, options = {}) {
transactionDetails = User.cashierRequests[params.transactionId]
const { message: { amount, mode, upi_id, upi_txid }, note, tag } = transactionDetails
status = tag ? tag : (note ? 'REJECTED' : "PENDING");
getRef('transaction__type').textContent = mode === 'cash-to-token' ? 'Wallet top-up' : 'Transfer to bank';
getRef('transaction__type').textContent = mode === 'cash-to-token' ? 'Wallet top-up' : 'Withdraw';
if (status === 'COMPLETED') {
getRef('transaction__link').href = `https://flosight.duckdns.org/tx/${note}`
getRef('transaction__link').classList.remove('hide')