From 1289d3543546aeb9af458c6ad3c0fcfa7e8ea666 Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Wed, 18 Dec 2019 17:40:48 +0300 Subject: [PATCH] fix: show default theme for donation related pages (#37956) * fix: show default theme for donation related pages * feat: add default theme to stripForm --- client/src/pages/year-end-gift.js | 2 +- client/utils/gatsby/layoutSelector.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/pages/year-end-gift.js b/client/src/pages/year-end-gift.js index a218b9f4bb..05f4477410 100644 --- a/client/src/pages/year-end-gift.js +++ b/client/src/pages/year-end-gift.js @@ -13,7 +13,7 @@ function YearEndGiftPage() {
- + diff --git a/client/utils/gatsby/layoutSelector.js b/client/utils/gatsby/layoutSelector.js index 91b98f3814..4b1dfe2b03 100644 --- a/client/utils/gatsby/layoutSelector.js +++ b/client/utils/gatsby/layoutSelector.js @@ -29,7 +29,11 @@ export default function layoutSelector({ element, props }) { ); } - if (/^\/donation(\/.*)*|^\/donate(\/.*)*/.test(pathname)) { + if ( + /^\/donation(\/.*)*|^\/donate(\/.*)*/.test(pathname) || + /^\/year-end-gift-successful(\/.*)*/.test(pathname) || + /^\/year-end-gift(\/.*)*/.test(pathname) + ) { return ( {element}