From 7644a5c04e5d3488de6f731652faa14c7d088db8 Mon Sep 17 00:00:00 2001 From: Katie Kroell Date: Thu, 25 Jan 2024 09:42:20 -0500 Subject: [PATCH] clean up --- .../tpa-confirmation/tpa-confirmation.vue | 64 ++++++------------- 1 file changed, 21 insertions(+), 43 deletions(-) diff --git a/src/layouts/tpa-confirmation/tpa-confirmation.vue b/src/layouts/tpa-confirmation/tpa-confirmation.vue index 73e6c5cf..57f9e69d 100644 --- a/src/layouts/tpa-confirmation/tpa-confirmation.vue +++ b/src/layouts/tpa-confirmation/tpa-confirmation.vue @@ -6,7 +6,9 @@ @invalidSubmit="onInvalidSubmit">
- +
+ class="small mb-4" /> - -
+
+ :marginTopSizeOverride="4" /> + class="mb-4 small" /> @@ -110,7 +96,6 @@ export default { siteHeader, siteFooter, vehicleBanner, - // siteSubHeader, textBlock, deductibleBox, // eslint-disable-next-line vue/no-reserved-component-names @@ -137,25 +122,19 @@ export default { return { mainStore }; }, data() { - // const { companyName } = toTitleCase(useMainStore().order.serviceLocation.provider.companyName ?? ''); return { widget: { tpaConfirmation: 'TPAConfirmationContent', orderDetails: 'OrderDetailsContent', contactCarrier: 'ContactCarrierContent' } - // companyName, - // customValueMap: { - // glassShop: companyName, - // carrierPhoneNumber - // } }; }, computed: { tpaConfirmationBodyOne() { return this.getCmsContent(this.widget.tpaConfirmation, widgetFields.CONTENT_GROUP_WIDGET.BODY_TEXT) - .replaceAll('{custom:phoneNumber}', this.preferredShopPhoneNumber) - .replaceAll('{custom:glassShop}', this.preferredShopName); + ?.replaceAll('{custom:phoneNumber}', this.preferredShopPhoneNumber) + ?.replaceAll('{custom:glassShop}', this.preferredShopName); }, tpaConfirmationBodyTwo() { return this.getCmsContent(this.widget.tpaConfirmation, widgetFields.CONTENT_GROUP_WIDGET.BODY_TEXT_2); @@ -187,16 +166,16 @@ export default { }, tpaConfirmationSubheaderText() { return this.getCmsContent('TPAConfirmationContent', 'SubheaderText') - .replaceAll('{custom:glassShop}', this.preferredShopName); + ?.replaceAll('{custom:glassShop}', this.preferredShopName); }, tpaConfirmationImage() { return this.getCmsContent('TPAConfirmationContent', 'Image'); }, contactCarrierText() { return this.getCmsContent(this.widget.contactCarrier, widgetFields.TEXT_BLOCK_WIDGET.TEXT) - .replaceAll('{custom:carrierPhoneNumber}', this.carrierPhoneNumber); + ?.replaceAll('{custom:carrierPhoneNumber}', this.carrierPhoneNumber); }, - // TODO: Replace with carrier number when account service is ready + // TODO: Replace with actual carrier number when account service is ready carrierPhoneNumber() { return '800-000-0000'; }, @@ -205,7 +184,7 @@ export default { } }, mounted() { - this.$refs.siteFooter.updateButtonText(`Go back to ${this.carrierName}`); + this.$refs.siteFooter?.updateButtonText(`Go back to ${this.carrierName}`); }, methods: { @@ -270,7 +249,6 @@ export default { margin-top: 0; :deep(p) { - color: $darker-gray; line-height: 1.5rem; font-size: 14px; @@ -286,11 +264,11 @@ export default { } #tpaConfirmationOrderDetailsTitle { - font-weight: 500; - line-height: 1.25rem; - color: $black; - margin-bottom: 1rem; - margin-top: 2rem; + font-weight: 500; + line-height: 1.5rem; + color: $black; + margin-bottom: 1rem; + margin-top: 2rem; } #contactCarrierText {