diff --git a/apps/editing-toolkit/editing-toolkit-plugin/whats-new/index.js b/apps/editing-toolkit/editing-toolkit-plugin/whats-new/index.js index 6eb0c454f0933..533b37e276409 100644 --- a/apps/editing-toolkit/editing-toolkit-plugin/whats-new/index.js +++ b/apps/editing-toolkit/editing-toolkit-plugin/whats-new/index.js @@ -1,2 +1 @@ import './src/whats-new'; -import './src/store'; diff --git a/apps/editing-toolkit/editing-toolkit-plugin/whats-new/src/store.js b/apps/editing-toolkit/editing-toolkit-plugin/whats-new/src/store.js deleted file mode 100644 index 75783319c3efe..0000000000000 --- a/apps/editing-toolkit/editing-toolkit-plugin/whats-new/src/store.js +++ /dev/null @@ -1,31 +0,0 @@ -import { registerStore } from '@wordpress/data'; - -const DEFAULT_STATE = { - whatsNew: false, -}; - -const actions = { - toggleWhatsNew: () => ( { - type: 'TOGGLE_FEATURE', - } ), -}; - -const selectors = { - isWhatsNewActive: ( state ) => state.whatsNew, -}; - -function reducer( state = DEFAULT_STATE, action ) { - switch ( action.type ) { - case 'TOGGLE_FEATURE': - return { - whatsNew: ! state.whatsNew, - }; - } - return state; -} - -registerStore( 'automattic/whats-new', { - reducer, - actions, - selectors, -} );