diff --git a/ui/src/organizations/containers/OrganizationsIndex.tsx b/ui/src/organizations/containers/OrganizationsIndex.tsx index 519ed2e356..6622570bc1 100644 --- a/ui/src/organizations/containers/OrganizationsIndex.tsx +++ b/ui/src/organizations/containers/OrganizationsIndex.tsx @@ -1,5 +1,5 @@ // Libraries -import React, {PureComponent} from 'react' +import React, {PureComponent, ChangeEvent} from 'react' import {WithRouterProps} from 'react-router' import {connect} from 'react-redux' import _ from 'lodash' @@ -13,6 +13,7 @@ import { IconFont, ComponentColor, OverlayTechnology, + Input, } from 'src/clockface' // Actions @@ -36,6 +37,7 @@ interface DispatchProps { interface State { modalState: ModalState + searchTerm: string } enum ModalState { @@ -47,15 +49,14 @@ type Props = StateProps & DispatchProps & WithRouterProps @ErrorHandling class OrganizationsIndex extends PureComponent { - constructor(props) { - super(props) - this.state = { - modalState: ModalState.Closed, - } + public state: State = { + modalState: ModalState.Closed, + searchTerm: '', } + public render() { - const {orgs, links, onCreateOrg, onDeleteOrg} = this.props - const {modalState} = this.state + const {links, onCreateOrg, onDeleteOrg} = this.props + const {modalState, searchTerm} = this.state return ( <> @@ -65,6 +66,12 @@ class OrganizationsIndex extends PureComponent { + +