Restyle billing toggles like amenity cards
Some checks are pending
CI / checks (push) Waiting to run
Some checks are pending
CI / checks (push) Waiting to run
This commit is contained in:
parent
8b2546faaf
commit
c0ae6cc9a0
1 changed files with 15 additions and 5 deletions
|
|
@ -217,9 +217,16 @@ export default function ProfilePage() {
|
||||||
{billingMessage ? <p style={{ color: 'green' }}>{billingMessage}</p> : null}
|
{billingMessage ? <p style={{ color: 'green' }}>{billingMessage}</p> : null}
|
||||||
{billingError ? <p style={{ color: 'red' }}>{billingError}</p> : null}
|
{billingError ? <p style={{ color: 'red' }}>{billingError}</p> : null}
|
||||||
<form onSubmit={onSaveBilling} style={{ display: 'grid', gap: 14, marginTop: 8 }}>
|
<form onSubmit={onSaveBilling} style={{ display: 'grid', gap: 14, marginTop: 8 }}>
|
||||||
<label style={{ display: 'inline-flex', alignItems: 'center', columnGap: 6 }}>
|
<label className="amenity-option" style={{ maxWidth: 460, alignItems: 'center' }}>
|
||||||
<input type="checkbox" checked={billingEnabled} onChange={(e) => setBillingEnabled(e.target.checked)} />
|
<div className="amenity-option-meta" style={{ fontWeight: 600 }}>
|
||||||
<span>{t('billingEnableLabel')}</span>
|
<span className="amenity-name">{t('billingEnableLabel')}</span>
|
||||||
|
</div>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
checked={billingEnabled}
|
||||||
|
onChange={(e) => setBillingEnabled(e.target.checked)}
|
||||||
|
style={{ width: 18, height: 18 }}
|
||||||
|
/>
|
||||||
</label>
|
</label>
|
||||||
{billingEnabled ? (
|
{billingEnabled ? (
|
||||||
<>
|
<>
|
||||||
|
|
@ -232,13 +239,16 @@ export default function ProfilePage() {
|
||||||
{t('billingIbanLabel')}
|
{t('billingIbanLabel')}
|
||||||
<input value={billingIban} onChange={(e) => setBillingIban(e.target.value)} placeholder="FI00 1234 5600 0007 85" />
|
<input value={billingIban} onChange={(e) => setBillingIban(e.target.value)} placeholder="FI00 1234 5600 0007 85" />
|
||||||
</label>
|
</label>
|
||||||
<label style={{ display: 'inline-flex', alignItems: 'center', columnGap: 6 }}>
|
<label className="amenity-option" style={{ maxWidth: 460, alignItems: 'center' }}>
|
||||||
|
<div className="amenity-option-meta" style={{ fontWeight: 600 }}>
|
||||||
|
<span className="amenity-name">{t('billingIncludeVat')}</span>
|
||||||
|
</div>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked={billingIncludeVatLine}
|
checked={billingIncludeVatLine}
|
||||||
onChange={(e) => setBillingIncludeVatLine(e.target.checked)}
|
onChange={(e) => setBillingIncludeVatLine(e.target.checked)}
|
||||||
|
style={{ width: 18, height: 18 }}
|
||||||
/>
|
/>
|
||||||
<span>{t('billingIncludeVat')}</span>
|
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ border: '1px solid #eee', padding: 12, borderRadius: 6 }}>
|
<div style={{ border: '1px solid #eee', padding: 12, borderRadius: 6 }}>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue