diff --git a/packages/app/src/components/AppSearcher/index.jsx b/packages/app/src/components/AppSearcher/index.jsx deleted file mode 100755 index 41a6eb39..00000000 --- a/packages/app/src/components/AppSearcher/index.jsx +++ /dev/null @@ -1,61 +0,0 @@ -import React from "react" -import * as antd from "antd" -import "./index.less" - -class Results extends React.Component { - state = { - results: this.props.results ?? [] - } - - renderResults = () => { - return this.state.results.map(result => { - return
- {result.title} -
- }) - } - - render() { - return
- {this.renderResults()} -
- } -} - -export default class AppSearcher extends React.Component { - state = { - loading: false, - searchResult: null, - } - - handleSearch = (value) => { - let results = [] - - // get results - results.push({ id: value, title: value }) - - // storage results - this.setState({ searchResult: results }) - - // open results onlayout drawer - this.openResults() - } - - openResults = () => { - window.app.SidedrawerController.render(() => ) - } - - render() { - return ( -
- -
- ) - } -} diff --git a/packages/app/src/components/AppSearcher/index.less b/packages/app/src/components/AppSearcher/index.less deleted file mode 100755 index 45519141..00000000 --- a/packages/app/src/components/AppSearcher/index.less +++ /dev/null @@ -1,34 +0,0 @@ -@import "theme/index.less"; - -.search_bar { - user-select: none; - --webkit-user-select: none; - - height: fit-content; - border: 0; - border-radius: 7px !important; - vertical-align: middle !important; - - .ant-input { - background-color: var(--background-color-accent) !important; - border-color: var(--background-color-accent) !important; - color: var(--background-color-contrast) !important; - } - - .ant-input-group { - display: flex; - align-items: center; - justify-content: center; - height: fit-content; - } - - .ant-input-group-addon { - width: fit-content; - background-color: transparent; - } - - .ant-btn { - background-color: var(--background-color-primary) !important; - border: 0 !important; - } -}