Skip to content

Commit e12feb1

Browse files
committed
more jsx styling
1 parent 46a95c8 commit e12feb1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

frontend/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"react/jsx-boolean-value": ["error", "never"],
4949
"react/jsx-closing-bracket-location": ["error"],
5050
"react/jsx-curly-brace-presence": ["error", "never"],
51-
"react/jsx-curly-newline": ["error", "consistent"]
51+
"react/jsx-curly-newline": ["error", "consistent"],
52+
"react/jsx-curly-spacing": ["error"]
5253
},
5354
"overrides": [
5455
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export const InvoiceListRowActions = ({invoice, small = false, buttons, hideEdit
5858
{(buttons?.includes('download') ?? true) && !small && (
5959
<InvoiceDownloadIcon invoice={invoice} fileType="pdf" />
6060
)}
61-
{(buttons?.includes('preview') ?? true) &&
61+
{(buttons?.includes('preview') ?? true) && (
6262
<InvoicePreviewIcon invoice={invoice} />
63-
}
63+
)}
6464

6565
{(buttons?.includes('delete') ?? true) && !small && (
6666
<ConfirmedDeleteIcon

0 commit comments

Comments
 (0)