This repository has been archived by the owner on May 5, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a namespace field in tab search component
- Loading branch information
1 parent
177a524
commit 9911472
Showing
8 changed files
with
90 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* TextBar | ||
* | ||
* Renders the input field of the searchbar | ||
* | ||
* @property {String} namespace the current state of the input field | ||
* @property {Function} changeNamespace handle inputchange | ||
* @property {Function} setNamespaceAndUrl confirm namespace and url and save in redux store | ||
*/ | ||
|
||
import React from 'react' | ||
|
||
const NamespaceTextBar = ({namespace, changeNamespace, setNamespaceAndUrl}) => | ||
<span className="search-text namespace-text"> | ||
<form className="search-text-form" onSubmit={setNamespaceAndUrl}> | ||
<input onChange={changeNamespace} className="search-text-input" type="text" value={namespace} placeholder="namespace (optional)" /> | ||
</form> | ||
</span> | ||
|
||
export default NamespaceTextBar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters