Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix laskugen props #550

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/src/components/invoice-generator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<div>
<InputLabel name={label} htmlId={htmlId} />
<span className="flex">
<Input id={htmlId} type={type ?? "text"} {...restProps} />
<Input id={htmlId} type={type ?? "text"} name={name} {...restProps} />
{unit ? <span className="ml-1 translate-y-1">{unit}</span> : null}
</span>
</div>
Expand Down Expand Up @@ -246,7 +246,7 @@
name="rows.quantity"
id={`rows[${index.toString()}].quantity`}
type="number"
onInput={(e) => setQuantity(Number(e.currentTarget.value))}

Check warning on line 249 in apps/web/src/components/invoice-generator/index.tsx

View workflow job for this annotation

GitHub Actions / Format, Lint, Check types & Build

Returning a void expression from an arrow function shorthand is forbidden. Please add braces to the arrow function
required
/>
</ErrorMessageBlock>
Expand Down Expand Up @@ -278,7 +278,7 @@
type="number"
name="rows.unit_price"
id={`rows[${index.toString()}].unit_price`}
onInput={(e) => setUnitPrice(Number(e.currentTarget.value))}

Check warning on line 281 in apps/web/src/components/invoice-generator/index.tsx

View workflow job for this annotation

GitHub Actions / Format, Lint, Check types & Build

Returning a void expression from an arrow function shorthand is forbidden. Please add braces to the arrow function
required
step={0.01}
min={0}
Expand All @@ -294,7 +294,7 @@
value={totalPrice.toFixed(2)}
id={`rows[${index.toString()}].total_price`}
unit="€"
disabled={true}

Check warning on line 297 in apps/web/src/components/invoice-generator/index.tsx

View workflow job for this annotation

GitHub Actions / Format, Lint, Check types & Build

Value must be omitted for boolean attribute `disabled`
/>
</span>
</fieldset>
Expand Down
Loading