/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
client/state/plugins/reducer.ts
25 строк
607 B
Wesley Berrêdo
Plugins: Go back to the list position after checking a plugin (#91761)
18 июн 2024, 15:10
Не верифицирован
18 июн 2024, 15:10
f8c2fab
Код
Авторство
О чём код?
import { withStorageKey } from '@automattic/state-utils'; import { combineReducers } from 'calypso/state/utils'; import installed from './installed/reducer'; import { lastVisited } from './last-visited/reducer'; import premium from './premium/reducer'; import upload from './upload/reducer'; import wporg from './wporg/reducer'; export interface IPluginsState { wporg: any; premium: any; installed: any; upload: any; lastVisited: any; } const combinedReducer = combineReducers( { wporg, premium, installed, upload, lastVisited, } ); export default withStorageKey( 'plugins', combinedReducer );