diff --git a/webapp/channels/src/components/post_view/post_flag_icon/__snapshots__/post_flag_icon.test.tsx.snap b/webapp/channels/src/components/post_view/post_flag_icon/__snapshots__/post_flag_icon.test.tsx.snap
index 2cd01128ac..049996f811 100644
--- a/webapp/channels/src/components/post_view/post_flag_icon/__snapshots__/post_flag_icon.test.tsx.snap
+++ b/webapp/channels/src/components/post_view/post_flag_icon/__snapshots__/post_flag_icon.test.tsx.snap
@@ -1,28 +1,15 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`components/post_view/PostFlagIcon should match snapshot 1`] = `
-
-
-
- }
placement="top"
- trigger={
- Array [
- "hover",
- "focus",
- ]
+ title={
+
}
>
-
+
`;
exports[`components/post_view/PostFlagIcon should match snapshot 2`] = `
-
-
-
- }
placement="top"
- trigger={
- Array [
- "hover",
- "focus",
- ]
+ title={
+
}
>
-
+
`;
diff --git a/webapp/channels/src/components/post_view/post_flag_icon/post_flag_icon.tsx b/webapp/channels/src/components/post_view/post_flag_icon/post_flag_icon.tsx
index da008827c5..b60f02553b 100644
--- a/webapp/channels/src/components/post_view/post_flag_icon/post_flag_icon.tsx
+++ b/webapp/channels/src/components/post_view/post_flag_icon/post_flag_icon.tsx
@@ -5,12 +5,11 @@ import classNames from 'classnames';
import React, {useCallback, useEffect, useRef, useState} from 'react';
import {FormattedMessage, useIntl} from 'react-intl';
-import OverlayTrigger from 'components/overlay_trigger';
-import Tooltip from 'components/tooltip';
import FlagIcon from 'components/widgets/icons/flag_icon';
import FlagIconFilled from 'components/widgets/icons/flag_icon_filled';
+import WithTooltip from 'components/with_tooltip';
-import Constants, {Locations, A11yCustomEventTypes} from 'utils/constants';
+import {Locations, A11yCustomEventTypes} from 'utils/constants';
export type Actions = {
flagPost: (postId: string) => void;
@@ -82,28 +81,22 @@ const PostFlagIcon = ({
}
return (
-
- {isFlagged ? (
-
- ) : (
-
- )}
-
+ title={
+ isFlagged ? (
+
+ ) : (
+
+ )
}
>
-
+
);
};