Make modifiers sections accept DecimalSources for the base
This commit is contained in:
parent
8ea777f797
commit
d2a66795b2
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ export function createModifierSection(
|
||||||
title: string,
|
title: string,
|
||||||
subtitle: string,
|
subtitle: string,
|
||||||
modifier: Required<Modifier>,
|
modifier: Required<Modifier>,
|
||||||
base = 1,
|
base: DecimalSource = 1,
|
||||||
unit = ""
|
unit = ""
|
||||||
) {
|
) {
|
||||||
return (
|
return (
|
||||||
|
@ -130,7 +130,7 @@ export function createModifierSection(
|
||||||
<br />
|
<br />
|
||||||
<div class="modifier-container">
|
<div class="modifier-container">
|
||||||
<span class="modifier-amount">
|
<span class="modifier-amount">
|
||||||
{base}
|
{format(base)}
|
||||||
{unit}
|
{unit}
|
||||||
</span>
|
</span>
|
||||||
<span class="modifier-description">Base</span>
|
<span class="modifier-description">Base</span>
|
||||||
|
|
Loading…
Reference in a new issue