[MM-59908] Migrate tooltips of 'components/threading/global_threads/thread_pane/thread_pane.tsx' to WithTooltip (#27850)
Этот коммит содержится в:
@@ -46,9 +46,10 @@ exports[`components/threading/global_threads/thread_pane should match snapshot 1
|
|||||||
threadId="1y8hpek81byspd4enyk9mp1ncw"
|
threadId="1y8hpek81byspd4enyk9mp1ncw"
|
||||||
unreadTimestamp={1611786714912}
|
unreadTimestamp={1611786714912}
|
||||||
>
|
>
|
||||||
<SimpleTooltip
|
<WithTooltip
|
||||||
content="More Actions"
|
|
||||||
id="threadActionMenu"
|
id="threadActionMenu"
|
||||||
|
placement="top"
|
||||||
|
title="More Actions"
|
||||||
>
|
>
|
||||||
<Memo(Button)
|
<Memo(Button)
|
||||||
className="Button___icon Button___large"
|
className="Button___icon Button___large"
|
||||||
@@ -57,7 +58,7 @@ exports[`components/threading/global_threads/thread_pane should match snapshot 1
|
|||||||
size={18}
|
size={18}
|
||||||
/>
|
/>
|
||||||
</Memo(Button)>
|
</Memo(Button)>
|
||||||
</SimpleTooltip>
|
</WithTooltip>
|
||||||
</Memo(ThreadMenu)>
|
</Memo(ThreadMenu)>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import {makeGetChannel} from 'mattermost-redux/selectors/entities/channels';
|
|||||||
import {getPost, makeGetPostsForThread} from 'mattermost-redux/selectors/entities/posts';
|
import {getPost, makeGetPostsForThread} from 'mattermost-redux/selectors/entities/posts';
|
||||||
|
|
||||||
import Header from 'components/widgets/header';
|
import Header from 'components/widgets/header';
|
||||||
import SimpleTooltip from 'components/widgets/simple_tooltip';
|
import WithTooltip from 'components/with_tooltip';
|
||||||
|
|
||||||
import type {GlobalState} from 'types/store';
|
import type {GlobalState} from 'types/store';
|
||||||
|
|
||||||
@@ -119,17 +119,18 @@ const ThreadPane = ({
|
|||||||
hasUnreads={Boolean(thread.unread_replies || thread.unread_mentions)}
|
hasUnreads={Boolean(thread.unread_replies || thread.unread_mentions)}
|
||||||
unreadTimestamp={unreadTimestamp}
|
unreadTimestamp={unreadTimestamp}
|
||||||
>
|
>
|
||||||
<SimpleTooltip
|
<WithTooltip
|
||||||
id='threadActionMenu'
|
id='threadActionMenu'
|
||||||
content={formatMessage({
|
title={formatMessage({
|
||||||
id: 'threading.threadHeader.menu',
|
id: 'threading.threadHeader.menu',
|
||||||
defaultMessage: 'More Actions',
|
defaultMessage: 'More Actions',
|
||||||
})}
|
})}
|
||||||
|
placement={'top'}
|
||||||
>
|
>
|
||||||
<Button className='Button___icon Button___large'>
|
<Button className='Button___icon Button___large'>
|
||||||
<DotsVerticalIcon size={18}/>
|
<DotsVerticalIcon size={18}/>
|
||||||
</Button>
|
</Button>
|
||||||
</SimpleTooltip>
|
</WithTooltip>
|
||||||
</ThreadMenu>
|
</ThreadMenu>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user