Made modifier section's base customizable
This commit is contained in:
parent
64533b55dc
commit
8e6fc852d7
1 changed files with 3 additions and 2 deletions
|
@ -119,7 +119,8 @@ export function createModifierSection(
|
|||
subtitle: string,
|
||||
modifier: Required<Modifier>,
|
||||
base: DecimalSource = 1,
|
||||
unit = ""
|
||||
unit = "",
|
||||
baseText: CoercableComponent = "Base"
|
||||
) {
|
||||
return (
|
||||
<div>
|
||||
|
@ -133,7 +134,7 @@ export function createModifierSection(
|
|||
{format(base)}
|
||||
{unit}
|
||||
</span>
|
||||
<span class="modifier-description">Base</span>
|
||||
<span class="modifier-description">{renderJSX(baseText)}</span>
|
||||
</div>
|
||||
{renderJSX(unref(modifier.description))}
|
||||
<hr />
|
||||
|
|
Loading…
Reference in a new issue