文件操作 - connectWithReduxStore.tsx
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/core/utils/connectWithReduxStore.tsx
编辑文件内容
import React from 'react'; import { connect, Provider } from 'react-redux'; import { store } from '../../store/store'; export function connectWithStore(WrappedComponent: any, ...args: any[]) { const ConnectedWrappedComponent = (connect as any)(...args)(WrappedComponent); return (props: any) => { return <ConnectedWrappedComponent {...props} store={store} />; }; } export function connectWithProvider(WrappedComponent: any, ...args: any[]) { const ConnectedWrappedComponent = (connect as any)(...args)(WrappedComponent); return (props: any) => { return ( <Provider store={store}> <ConnectedWrappedComponent {...props} store={store} /> </Provider> ); }; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件