Skip to content

Commit

Permalink
Regression: Channel type icon on Engagement Dashboard (#26269)
Browse files Browse the repository at this point in the history
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat>
Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
  • Loading branch information
3 people authored Jul 20, 2022
1 parent 7422924 commit ddf7d0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const ChannelsTab = (): ReactElement => {
<Table.Cell>{i + 1}.</Table.Cell>
<Table.Cell>
<Margins inlineEnd='x4'>
{(t === 'd' && <Icon name='at' />) || (t === 'c' && <Icon name='lock' />) || (t === 'p' && <Icon name='hashtag' />)}
{(t === 'd' && <Icon name='at' />) || (t === 'p' && <Icon name='lock' />) || (t === 'c' && <Icon name='hashtag' />)}
</Margins>
{name}
</Table.Cell>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ const MessagesPerChannelSection = (): ReactElement => {
color: colors.w500,
},
{
id: 'c',
id: 'p',
label: t('Private_Channels'),
value: pie.c,
value: pie.p,
color: colors.s500,
},
{
id: 'p',
id: 'c',
label: t('Public_Channels'),
value: pie.p,
value: pie.c,
color: colors.p500,
},
]}
Expand Down Expand Up @@ -130,10 +130,9 @@ const MessagesPerChannelSection = (): ReactElement => {
},
},
}}
// @ts-ignore
tooltip={({ value }): ReactElement => (
tooltip={({ datum }): ReactElement => (
<Box fontScale='p1m' color='alternative'>
{t('Value_messages', { value })}
{t('Value_messages', { value: datum.value })}
</Box>
)}
/>
Expand Down Expand Up @@ -194,8 +193,8 @@ const MessagesPerChannelSection = (): ReactElement => {
<Table.Cell>
<Margins inlineEnd='x4'>
{(t === 'd' && <Icon name='at' />) ||
(t === 'c' && <Icon name='lock' />) ||
(t === 'p' && <Icon name='hashtag' />)}
(t === 'p' && <Icon name='lock' />) ||
(t === 'c' && <Icon name='hashtag' />)}
</Margins>
{name}
</Table.Cell>
Expand Down

0 comments on commit ddf7d0e

Please sign in to comment.