Skip to content

Commit 46a95c8

Browse files
committed
eslint: consistent jsx newlines
1 parent affea97 commit 46a95c8

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

frontend/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
// "react/destructuring-assignment": ["error", "always"]
4848
"react/jsx-boolean-value": ["error", "never"],
4949
"react/jsx-closing-bracket-location": ["error"],
50-
"react/jsx-curly-brace-presence": ["error", "never"]
50+
"react/jsx-curly-brace-presence": ["error", "never"],
51+
"react/jsx-curly-newline": ["error", "consistent"]
5152
},
5253
"overrides": [
5354
{

frontend/src/components/invoice/invoice-edit/EditInvoiceSaveButtons.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const EditInvoiceSaveButtons = ({invoice, onClick}: EditInvoiceSaveButton
1616

1717
return (
1818
<>
19-
{!isNewInvoice && !invoice.isQuotation && invoice.client &&
19+
{!isNewInvoice && !invoice.isQuotation && invoice.client && (
2020
<BusyButton
2121
claim={Claim.ManageInvoices}
2222
variant="light"
@@ -26,7 +26,7 @@ export const EditInvoiceSaveButtons = ({invoice, onClick}: EditInvoiceSaveButton
2626
>
2727
{t('invoice.createCreditNota')}
2828
</BusyButton>
29-
}
29+
)}
3030
<BusyButton
3131
claim={invoice.isQuotation ? Claim.ManageQuotations : Claim.ManageInvoices}
3232
variant="light"

frontend/src/components/invoice/invoice-table/InvoiceListRowActions.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ export const InvoiceListRowActions = ({invoice, small = false, buttons, hideEdit
5252
style={{marginRight: invoice.isQuotation ? undefined : -15}}
5353
/>
5454
)}
55-
{!hideEdit && (buttons?.includes('validate') ?? true) &&
55+
{!hideEdit && (buttons?.includes('validate') ?? true) && (
5656
<InvoiceVerifyIconToggle claim={Claim.ValidateInvoices} invoice={invoice} toggleBusy={toggleBusy} />
57-
}
58-
{(buttons?.includes('download') ?? true) && !small &&
57+
)}
58+
{(buttons?.includes('download') ?? true) && !small && (
5959
<InvoiceDownloadIcon invoice={invoice} fileType="pdf" />
60-
}
60+
)}
6161
{(buttons?.includes('preview') ?? true) &&
6262
<InvoicePreviewIcon invoice={invoice} />
6363
}

0 commit comments

Comments
 (0)