fix: show default theme for donation related pages (#37956)
* fix: show default theme for donation related pages * feat: add default theme to stripForm
This commit is contained in:
@ -13,7 +13,7 @@ function YearEndGiftPage() {
|
||||
<main>
|
||||
<Spacer />
|
||||
<FullWidthRow>
|
||||
<YearEndDonationForm />
|
||||
<YearEndDonationForm defaultTheme='light' />
|
||||
</FullWidthRow>
|
||||
<Spacer />
|
||||
<Spacer />
|
||||
|
@ -29,7 +29,11 @@ export default function layoutSelector({ element, props }) {
|
||||
</DefaultLayout>
|
||||
);
|
||||
}
|
||||
if (/^\/donation(\/.*)*|^\/donate(\/.*)*/.test(pathname)) {
|
||||
if (
|
||||
/^\/donation(\/.*)*|^\/donate(\/.*)*/.test(pathname) ||
|
||||
/^\/year-end-gift-successful(\/.*)*/.test(pathname) ||
|
||||
/^\/year-end-gift(\/.*)*/.test(pathname)
|
||||
) {
|
||||
return (
|
||||
<DefaultLayout pathname={pathname} useTheme={false}>
|
||||
{element}
|
||||
|
Reference in New Issue
Block a user