Update autoscreens to use new text component
This commit is contained in:
parent
b65f93890e
commit
8a49b5148d
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue