diff --git a/webapp/channels/src/components/post_edit_history/edited_post_item/__snapshots__/edited_post_item.test.tsx.snap b/webapp/channels/src/components/post_edit_history/edited_post_item/__snapshots__/edited_post_item.test.tsx.snap index 21e0e44ac8..13ce740c4c 100644 --- a/webapp/channels/src/components/post_edit_history/edited_post_item/__snapshots__/edited_post_item.test.tsx.snap +++ b/webapp/channels/src/components/post_edit_history/edited_post_item/__snapshots__/edited_post_item.test.tsx.snap @@ -85,24 +85,10 @@ exports[`components/post_edit_history/edited_post_item should match snapshot 1`] /> - - Restore this version - - } + - + diff --git a/webapp/channels/src/components/post_edit_history/edited_post_item/edited_post_item.tsx b/webapp/channels/src/components/post_edit_history/edited_post_item/edited_post_item.tsx index 046713ee53..72c4f2476b 100644 --- a/webapp/channels/src/components/post_edit_history/edited_post_item/edited_post_item.tsx +++ b/webapp/channels/src/components/post_edit_history/edited_post_item/edited_post_item.tsx @@ -13,15 +13,14 @@ import type {Theme} from 'mattermost-redux/selectors/entities/preferences'; import CompassThemeProvider from 'components/compass_theme_provider/compass_theme_provider'; import InfoToast from 'components/info_toast/info_toast'; -import OverlayTrigger from 'components/overlay_trigger'; import PostAriaLabelDiv from 'components/post_view/post_aria_label_div'; import PostMessageContainer from 'components/post_view/post_message_view'; import Timestamp, {RelativeRanges} from 'components/timestamp'; -import Tooltip from 'components/tooltip'; import UserProfileComponent from 'components/user_profile'; import Avatar from 'components/widgets/users/avatar'; +import WithTooltip from 'components/with_tooltip'; -import Constants, {ModalIdentifiers} from 'utils/constants'; +import {ModalIdentifiers} from 'utils/constants'; import {imageURLForUser} from 'utils/utils'; import RestorePostModal from '../restore_post_modal'; @@ -171,21 +170,11 @@ const EditedPostItem = ({post, isCurrent = false, postCurrentVersion, theme, act ); - const tooltip = ( - - {formatMessage(itemMessages.helpText)} - - ); - const restoreButton = isCurrent ? null : ( - - + ); const postContainerClass = classNames('edit-post-history__container', {'edit-post-history__container__background': open});