diff --git a/src/Pages/Dashboard/partials/SmartSearch.tsx b/src/Pages/Dashboard/partials/SmartSearch.tsx index d31fca5..8828d98 100644 --- a/src/Pages/Dashboard/partials/SmartSearch.tsx +++ b/src/Pages/Dashboard/partials/SmartSearch.tsx @@ -23,6 +23,12 @@ const SmartSearch: FC = ({ updateSearchResults }) => { const placeHolder = 'Enter the channel name here'; + const onKeyPressClickHandler = (event: React.KeyboardEvent) => { + if (event.key === 'Enter') { + updateSearchResults(searchValue); + } + }; + return (
= ({ updateSearchResults }) => { onChange={handleSearchInput} placeholder={placeHolder} containerClassName={cx(styles['input-container'])} + onKeyPress={onKeyPressClickHandler} />
diff --git a/src/components/LeftNav/index.tsx b/src/components/LeftNav/index.tsx index d5ad060..5151fb8 100644 --- a/src/components/LeftNav/index.tsx +++ b/src/components/LeftNav/index.tsx @@ -99,9 +99,9 @@ const LeftNav: React.FC = ({ children }) => { const headerContent: JSX.Element = (
- + {isExpanded && ( - + Houston UI )}