message: refactor(dict-panel): fix typos
diff: @@ -30,7 +30,7 @@ export interface SearchBoxProps {
  }
  /**
  - * Seach box
  + * Search box
  */
  export const SearchBox: FC<SearchBoxProps> = props => {
  // Textarea also shares the text so only replace here
  @@ -44,21 +44,23 @@ export const SearchBox: FC<SearchBoxProps> = props => {
  focusBlur
  )
  - const [onShowSugget, onShowSugget$] = useObservableCallback<boolean>(identity)
  + const [onShowSuggest, onShowSuggest$] = useObservableCallback<boolean>(
  + identity
  + )
  const isShowSuggest = useObservableState(
  useObservable(
  inputs$ =>
  - combineLatest(
  + combineLatest([
  inputs$,
  merge(
  // only show suggest when start typing
  searchBoxFocusBlur$.pipe(filter(isFocus => !isFocus)),
  suggestFocusBlur$,
  - onShowSugget$,
  + onShowSuggest$,
  message.createStream('SEARCH_TEXT_BOX').pipe(mapTo(false))
  )
  - ).pipe(
  + ]).pipe(
  map(([[enableSuggest, text], shouldShowSuggest]) =>
  Boolean(enableSuggest && text && shouldShowSuggest)
  ),
  @@ -79,7 +81,7 @@ export const SearchBox: FC<SearchBoxProps> = props => {
  const focusInput = useRef(() => {
  if (inputRef.current) {
  inputRef.current.focus()
  - // Although search box is seleted on focus event
  + // Although search box is selected on focus event
  // this is needed as the box may be focused initially.
  inputRef.current.select()
  }
  @@ -87,7 +89,7 @@ export const SearchBox: FC<SearchBoxProps> = props => {
  const searchText = (text: unknown) => {
  hasTypedRef.current = false
  - onShowSugget(false)
  + onShowSuggest(false)
  props.onSearch(typeof text === 'string' ? text : props.text)
  focusInput()
  }
  @@ -113,10 +115,10 @@ export const SearchBox: FC<SearchBoxProps> = props => {
  ref={inputRef}
  onChange={e => {
  props.onInput(e.currentTarget.value)
  - onShowSugget(true)
  + onShowSuggest(true)
  }}
  onKeyDown={e => {
  - // prevent page shortkeys
  + // prevent page hot keys
  e.nativeEvent.stopPropagation()
  hasTypedRef.current = true
  @@ -126,7 +128,7 @@ export const SearchBox: FC<SearchBoxProps> = props => {
  if (firstSuggestBtn) {
  firstSuggestBtn.focus()
  } else {
  - onShowSugget(true)
  + onShowSuggest(true)
  }
  e.preventDefault()
  e.stopPropagation()
  