Introduce a const that determines which icon to show
https://linear.app/comm/issue/ENG-10658/move-ui-differences-to-specs
Depends on D14633
Differential D14634
[web] Display thread icon based on the specs Authored by tomek on Apr 30 2025, 5:56 PM.
Details
Introduce a const that determines which icon to show https://linear.app/comm/issue/ENG-10658/move-ui-differences-to-specs Depends on D14633 Checked if the correct icon is displayed.
Diff Detail
Event TimelineComment Actions I don't understand why iconCreationFunction is introduced. Can't we just have chatThreadListIcon in specs that is lock, server or something else in the future (depends on the protocol)?
const icon = iconName === 'lock' ? lock : server;
...
<FontAwesomeIcon size="xs" className={iconClass} icon={icon} />where iconName comes from specs
| ||||||||||||||||||||