Update block components to replace paragraph and heading with new text component

This commit is contained in:
Andrew Kingston 2025-02-26 11:10:58 +00:00
parent 8a49b5148d
commit 99f47c27ed
No known key found for this signature in database
5 changed files with 14 additions and 11 deletions

View File

@ -125,9 +125,9 @@
order={0}
>
<BlockComponent
type="heading"
type="textv2"
props={{
text: title,
text: title ? `## ${title}` : "",
}}
order={0}
/>

View File

@ -148,7 +148,10 @@
}}
order={0}
>
<BlockComponent type="heading" props={{ text: step.title }} />
<BlockComponent
type="textv2"
props={{ text: `## ${step.title}` }}
/>
{#if buttonPosition === "top"}
<BlockComponent
type="buttongroup"
@ -157,7 +160,7 @@
{/if}
</BlockComponent>
</BlockComponent>
<BlockComponent type="text" props={{ text: step.desc }} order={1} />
<BlockComponent type="textv2" props={{ text: step.desc }} order={1} />
<BlockComponent type="container" order={2}>
<div

View File

@ -190,7 +190,7 @@
}}
/>
<BlockComponent
type="text"
type="textv2"
order={1}
props={{
text: "Select a row to view its fields",

View File

@ -74,11 +74,11 @@
order={0}
>
<BlockComponent
type="heading"
props={{ text: title || "" }}
type="textv2"
props={{ text: title ? `## ${title}` : "" }}
order={0}
/>
{#if buttonPosition == "top"}
{#if buttonPosition === "top"}
<BlockComponent
type="buttongroup"
props={{
@ -93,7 +93,7 @@
</BlockComponent>
{/if}
{#if description}
<BlockComponent type="text" props={{ text: description }} order={1} />
<BlockComponent type="textv2" props={{ text: description }} order={1} />
{/if}
<BlockComponent type="container">
<div class="form-block fields" class:mobile={$context.device.mobile}>

View File

@ -184,9 +184,9 @@
order={0}
>
<BlockComponent
type="heading"
type="textv2"
props={{
text: title,
text: title ? `## ${title}` : "",
}}
order={0}
/>