-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Boost: Remove global state from Purchase Success component (#33105)
* Remove global state from PurchaseSuccess component * add changelog
- Loading branch information
Showing
4 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
projects/plugins/boost/app/assets/src/js/utils/enable-cloud-css.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { modulesState } from '../stores/modules'; | ||
|
||
export default function enableCloudCss() { | ||
// Enable cloud css module on upgrade. | ||
modulesState.update( oldValue => { | ||
return { ...oldValue, cloud_css: { ...oldValue.cloud_css, active: true } }; | ||
} ); | ||
} |
5 changes: 5 additions & 0 deletions
5
projects/plugins/boost/changelog/remove-state-purchase-success-component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: removed | ||
Comment: Removed global state from Purchase Success component. | ||
|
||
|