Use Cms defined text

This commit is contained in:
Chloe Herd 2023-08-10 16:49:14 -04:00
parent 2ae0c0922b
commit bc3b713e11

View file

@ -1,8 +1,5 @@
<template> <template>
<reviewBlock <reviewBlock :customHeaderText="header" :content="displayContent" @edit-clicked="editClicked" />
:headerCmsWidgetName="cmsWidgetName"
:content="displayContent"
@edit-clicked="editClicked" />
</template> </template>
<script> <script>
@ -24,12 +21,10 @@ export default {
}, },
computed: { computed: {
displayContent() { displayContent() {
return [ return [this.fullName, this.email, this.phoneNumber, this.smsOptIn];
this.fullName, },
this.email, header() {
this.phoneNumber, return this.getCmsContent(this.cmsWidgetName, "HeaderText");
this.smsOptIn,
];
}, },
fullName() { fullName() {
return `${this.customer?.firstName} ${this.customer?.lastName}`; return `${this.customer?.firstName} ${this.customer?.lastName}`;
@ -41,10 +36,8 @@ export default {
return this.customer?.phoneNumber; return this.customer?.phoneNumber;
}, },
smsOptIn() { smsOptIn() {
return this.customer?.isSmsOptIn return this.getCmsContent(this.cmsWidgetName, "SubheaderText");
? "Opted in to text message updates" },
: "Opted out of text message updates";
}
}, },
components: { components: {
reviewBlock, reviewBlock,