From 99277b75e42b86b3212c6ac0051d0db73536ef43 Mon Sep 17 00:00:00 2001 From: geek Date: Thu, 20 Jul 2017 19:17:46 +0900 Subject: [PATCH] discovery view create discovery component modify --- .../@overflow/discovery/react/Discovery.tsx | 21 +++++++++++++++++++ .../discovery/react/components/Discovery.tsx | 9 ++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/ts/@overflow/discovery/react/Discovery.tsx b/src/ts/@overflow/discovery/react/Discovery.tsx index e69de29..1446b40 100644 --- a/src/ts/@overflow/discovery/react/Discovery.tsx +++ b/src/ts/@overflow/discovery/react/Discovery.tsx @@ -0,0 +1,21 @@ +import { connect, Dispatch } from 'react-redux'; +import { + Discovery, + StateProps as DiscoveryStateProps, + DispatchProps as DiscoveryDispatchProps, +} from './components/Discovery'; + + +export function mapStateToProps(state: any): DiscoveryStateProps { + return { + + }; +} + +export function mapDispatchToProps(dispatch: Dispatch): DiscoveryDispatchProps { + return { + + }; +} + +export default connect(mapStateToProps, mapDispatchToProps)(Discovery); diff --git a/src/ts/@overflow/discovery/react/components/Discovery.tsx b/src/ts/@overflow/discovery/react/components/Discovery.tsx index ed7baa2..28f89d0 100644 --- a/src/ts/@overflow/discovery/react/components/Discovery.tsx +++ b/src/ts/@overflow/discovery/react/components/Discovery.tsx @@ -9,10 +9,15 @@ import { import { DiscoveryProbe } from './DiscoveryProbe'; import { DiscoveryTable } from './DiscoveryTable'; -export interface Props { - +export interface StateProps { } +export interface DispatchProps { + +} + +export type Props = StateProps & DispatchProps; + export interface State { startPopup:boolean; probeTemp: any;