fix/billing-checkbox-alignment #17
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}
|
||||
{billingError ? <p style={{ color: 'red' }}>{billingError}</p> : null}
|
||||
<form onSubmit={onSaveBilling} style={{ display: 'grid', gap: 14, marginTop: 8 }}>
|
||||
<label style={{ display: 'inline-flex', alignItems: 'center', columnGap: 6 }}>
|
||||
<input type="checkbox" checked={billingEnabled} onChange={(e) => setBillingEnabled(e.target.checked)} />
|
||||
<span>{t('billingEnableLabel')}</span>
|
||||
<label className="amenity-option" style={{ maxWidth: 460, alignItems: 'center' }}>
|
||||
<div className="amenity-option-meta" style={{ fontWeight: 600 }}>
|
||||
<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>
|
||||
{billingEnabled ? (
|
||||
<>
|
||||
|
|
@ -232,13 +239,16 @@ export default function ProfilePage() {
|
|||
{t('billingIbanLabel')}
|
||||
<input value={billingIban} onChange={(e) => setBillingIban(e.target.value)} placeholder="FI00 1234 5600 0007 85" />
|
||||
</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
|
||||
type="checkbox"
|
||||
checked={billingIncludeVatLine}
|
||||
onChange={(e) => setBillingIncludeVatLine(e.target.checked)}
|
||||
style={{ width: 18, height: 18 }}
|
||||
/>
|
||||
<span>{t('billingIncludeVat')}</span>
|
||||
</label>
|
||||
</div>
|
||||
<div style={{ border: '1px solid #eee', padding: 12, borderRadius: 6 }}>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue