Update autoscreens to use new text component

This commit is contained in:
Andrew Kingston 2025-02-26 11:03:36 +00:00
parent b65f93890e
commit 8a49b5148d
No known key found for this signature in database
4 changed files with 8 additions and 8 deletions

View File

@ -5,10 +5,10 @@ import getValidRoute from "../getValidRoute"
import { getRowActionButtonTemplates } from "@/templates/rowActions"
const inline = async ({ tableOrView, permissions, screens }) => {
const heading = new Component("@budibase/standard-components/heading")
const heading = new Component("@budibase/standard-components/textv2")
.instanceName("Table heading")
.customProps({
text: tableOrView.name,
text: `## ${tableOrView.name}`,
})
.gridDesktopColSpan(1, 13)
.gridDesktopRowSpan(1, 3)

View File

@ -43,10 +43,10 @@ const modal = async ({ tableOrView, permissions, screens }) => {
.gridDesktopColSpan(7, 13)
.gridDesktopRowSpan(1, 3)
const heading = new Component("@budibase/standard-components/heading")
const heading = new Component("@budibase/standard-components/textv2")
.instanceName("Table heading")
.customProps({
text: tableOrView.name,
text: `## ${tableOrView.name}`,
})
.gridDesktopColSpan(1, 7)
.gridDesktopRowSpan(1, 3)

View File

@ -40,10 +40,10 @@ const getTableScreenTemplate = ({
.gridDesktopColSpan(7, 13)
.gridDesktopRowSpan(1, 3)
const heading = new Component("@budibase/standard-components/heading")
const heading = new Component("@budibase/standard-components/textv2")
.instanceName("Table heading")
.customProps({
text: tableOrView.name,
text: `## ${tableOrView.name}`,
})
.gridDesktopColSpan(1, 7)
.gridDesktopRowSpan(1, 3)

View File

@ -41,10 +41,10 @@ const sidePanel = async ({ tableOrView, permissions, screens }) => {
.gridDesktopColSpan(7, 13)
.gridDesktopRowSpan(1, 3)
const heading = new Component("@budibase/standard-components/heading")
const heading = new Component("@budibase/standard-components/textv2")
.instanceName("Table heading")
.customProps({
text: tableOrView.name,
text: `## ${tableOrView.name}`,
})
.gridDesktopColSpan(1, 7)
.gridDesktopRowSpan(1, 3)