Skip to content

Commit a0d5f66

Browse files
committed
double quotes in jsx
1 parent 59e2e9b commit a0d5f66

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

frontend/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"no-useless-computed-key": "error",
2929
"no-var": "error",
3030
"no-shadow": "off",
31-
"@typescript-eslint/no-shadow": "error"
31+
"@typescript-eslint/no-shadow": "error",
32+
"jsx-quotes": ["error", "prefer-double"]
3233
},
3334
"overrides": [
3435
{

frontend/src/components/controls/form-controls/select/SelectWithCreateButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const SelectWithCreateButton = ({claim, children, openCreateModal, create
2626
</div>
2727
<div style={{width: 120, position: 'relative'}}>
2828
<Button
29-
className='tst-create'
29+
className="tst-create"
3030
claim={{claim, or: 'disabled'}}
3131
onClick={openCreateModal}
3232
variant="light"

frontend/src/components/controls/table/ListSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const ListSelect = ({data, value, onChange, ...props}: ListSelectProps<In
5252
<CheckboxInput
5353
value={value.map(i => i._id).includes(model._id)}
5454
onChange={() => handleCheckboxChange(model)}
55-
label=''
55+
label=""
5656
/>
5757
</td>
5858
<td>#{model.number}</td>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const EditInvoiceHeader = ({invoice, onChange}: EditInvoiceHeaderProps) =
3939
showNote
4040
/>
4141
<DownloadInvoiceButton invoice={invoice} />
42-
{!invoice?.isQuotation && <InvoiceDownloadIcon invoice={invoice} fileType='xml' style={{color: '#0062cc', marginLeft: 20}} />}
42+
{!invoice?.isQuotation && <InvoiceDownloadIcon invoice={invoice} fileType="xml" style={{color: '#0062cc', marginLeft: 20}} />}
4343
</div>
4444
</div>
4545
)}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const EditInvoiceSaveButtons = ({invoice, onClick}: EditInvoiceSaveButton
1919
{!isNewInvoice && !invoice.isQuotation && invoice.client &&
2020
<BusyButton
2121
claim={Claim.ManageInvoices}
22-
variant='light'
22+
variant="light"
2323
icon="far fa-thin fa-copy"
2424
onClick={() => onClick('clone', navigate)}
2525
className="tst-clone-invoice"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const InvoiceListRowActions = ({invoice, small = false, buttons, hideEdit
5656
<InvoiceVerifyIconToggle claim={Claim.ValidateInvoices} invoice={invoice} toggleBusy={toggleBusy} />
5757
}
5858
{(buttons?.includes('download') ?? true) && !small &&
59-
<InvoiceDownloadIcon invoice={invoice} fileType='pdf' />
59+
<InvoiceDownloadIcon invoice={invoice} fileType="pdf" />
6060
}
6161
{(buttons?.includes('preview') ?? true) &&
6262
<InvoicePreviewIcon invoice={invoice} />

frontend/src/components/project/project-month-list/table/inbound/ProjectMonthInboundCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export const ProjectMonthInboundCell = ({fullProjectMonth}: ProjectMonthInboundC
138138
</div>
139139
)}
140140
{fullProjectMonth.details.inbound.proforma && (
141-
<div className='inbound-proforma'>
141+
<div className="inbound-proforma">
142142
<span>{t('projectMonth.proformaTitle')}</span>
143143
<ProformaForecast fullProjectMonth={fullProjectMonth} />
144144
<span>{t(`project.proforma.${fullProjectMonth.project.projectMonthConfig.proforma}`)}</span>

0 commit comments

Comments
 (0)