diff --git a/src/ts/@overflow/probe/react/ProbeDetail.tsx b/src/ts/@overflow/probe/react/ProbeDetail.tsx new file mode 100644 index 0000000..366b6af --- /dev/null +++ b/src/ts/@overflow/probe/react/ProbeDetail.tsx @@ -0,0 +1,19 @@ +import { connect, Dispatch } from 'react-redux'; +import { + ProbeDetail, + StateProps as ProbeDetailStateProps, + DispatchProps as ProbeDetailDispatchProps, +} from './components/ProbeDetail'; + +export function mapStateToProps(state: any): ProbeDetailStateProps { + return { + probe: state.probe, + }; +} + +export function mapDispatchToProps(dispatch: Dispatch): ProbeDetailDispatchProps { + return { + }; +} + +export default connect(mapStateToProps, mapDispatchToProps)(ProbeDetail); diff --git a/src/ts/@overflow/probe/react/ProbeDown.tsx b/src/ts/@overflow/probe/react/ProbeDown.tsx new file mode 100644 index 0000000..6adb609 --- /dev/null +++ b/src/ts/@overflow/probe/react/ProbeDown.tsx @@ -0,0 +1,20 @@ +import { connect, Dispatch } from 'react-redux'; +import { + ProbeDown, + StateProps as ProbeDownStateProps, + DispatchProps as ProbeDownDispatchProps, +} from './components/ProbeDown'; + +export function mapStateToProps(state: any): ProbeDownStateProps { + return { + + }; +} + +export function mapDispatchToProps(dispatch: Dispatch): ProbeDownDispatchProps { + return { + + }; +} + +export default connect(mapStateToProps, mapDispatchToProps)(ProbeDown); diff --git a/src/ts/@overflow/probe/react/ProbeList.tsx b/src/ts/@overflow/probe/react/ProbeList.tsx index 63412af..b1be172 100644 --- a/src/ts/@overflow/probe/react/ProbeList.tsx +++ b/src/ts/@overflow/probe/react/ProbeList.tsx @@ -4,9 +4,8 @@ import { StateProps as ProbeListStateProps, DispatchProps as ProbeListDispatchProps, } from './components/ProbeList'; -import Domain from '@overflow/domain/api/model/Domain'; -import State from '../redux/state/ProbeRegist'; +import Domain from '@overflow/domain/api/model/Domain'; import * as probeListActions from '../redux/action/read_all_by_domain'; diff --git a/src/ts/@overflow/probe/react/components/ProbeDetail.tsx b/src/ts/@overflow/probe/react/components/ProbeDetail.tsx index 9acd4b0..533eb29 100644 --- a/src/ts/@overflow/probe/react/components/ProbeDetail.tsx +++ b/src/ts/@overflow/probe/react/components/ProbeDetail.tsx @@ -9,10 +9,17 @@ import { Button, import { TargetTable } from '@overflow/temp/react/components/Targets'; import Probe from '@overflow/probe/api/model/Probe'; -export interface Props { + +export interface StateProps { probe: Probe; } +export interface DispatchProps { + +} + +export type Props = StateProps & DispatchProps; + export interface State { } diff --git a/src/ts/@overflow/probe/react/components/ProbeDown.tsx b/src/ts/@overflow/probe/react/components/ProbeDown.tsx index 5517d74..1709549 100644 --- a/src/ts/@overflow/probe/react/components/ProbeDown.tsx +++ b/src/ts/@overflow/probe/react/components/ProbeDown.tsx @@ -8,13 +8,19 @@ import { Container, } from 'semantic-ui-react'; +export interface StateProps { + +} + +export interface DispatchProps { + +} + +export type Props = StateProps & DispatchProps; export interface State { activeItem: string[]; } -export interface Props { - -} const osNames = ['Windows', 'Debian', 'Ubuntu', 'Fedora', 'CentOS'];