Skip to content
Snippets Groups Projects
Closed JetBrains: TS refactor: extract search result properties to a wrapper
  • View options
  • JetBrains: TS refactor: extract search result properties to a wrapper

  • View options
  • Closed Issue created by Administrator

    Created by: vdavid

    We have this repeated for each search result type:

     <div id={`search-result-list-item-${resultId}`}
        className={classNames(styles.line, { [styles.lineActive]: resultId === selectedResult })}
        onClick={onClick}
        key={resultId}>

    As @philipp-spiess suggested here, “This part can probably be extracted in a wrapper component and reused (since it got quite specific behavior like the html id property that we need to ensure is correctly used across all search results).”

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first