@@ -26,6 +26,7 @@ import variables from '@styles/variables';
2626import CONST from '@src/CONST' ;
2727import ONYXKEYS from '@src/ONYXKEYS' ;
2828import { isEmptyObject } from '@src/types/utils/EmptyObject' ;
29+ import DraftIndicator from './OptionRow/DraftIndicator' ;
2930import OptionRowAlternateText from './OptionRowAlternateText' ;
3031import OptionRowAvatar from './OptionRowAvatar' ;
3132import OptionRowErrorBadge from './OptionRowErrorBadge' ;
@@ -50,7 +51,7 @@ function OptionRowLHN({
5051 const styles = useThemeStyles ( ) ;
5152 const popoverAnchor = useRef < View > ( null ) ;
5253 const StyleUtils = useStyleUtils ( ) ;
53- const expensifyIcons = useMemoizedLazyExpensifyIcons ( [ 'Pencil' , ' Pin'] ) ;
54+ const expensifyIcons = useMemoizedLazyExpensifyIcons ( [ 'Pin' ] ) ;
5455
5556 const { onboardingPurpose, onboarding, isScreenFocused} = useLHNTooltipContext ( ) ;
5657 const [ conciergeReportID ] = useOnyx ( ONYXKEYS . CONCIERGE_REPORT_ID ) ;
@@ -204,20 +205,10 @@ function OptionRowLHN({
204205 brickRoadIndicator = { brickRoadIndicator }
205206 actionBadgeText = { actionBadgeText }
206207 />
207- { hasDraftComment && ! ! optionItem . isAllowedToComment && (
208- < View
209- style = { styles . ml2 }
210- accessibilityLabel = { translate ( 'sidebarScreen.draftedMessage' ) }
211- >
212- < Icon
213- testID = "Pencil Icon"
214- fill = { theme . icon }
215- src = { expensifyIcons . Pencil }
216- width = { variables . iconSizeSmall }
217- height = { variables . iconSizeSmall }
218- />
219- </ View >
220- ) }
208+ < DraftIndicator
209+ hasDraftComment = { hasDraftComment }
210+ isAllowedToComment = { optionItem . isAllowedToComment }
211+ />
221212 { ! brickRoadIndicator && ! ! optionItem . isPinned && (
222213 < View
223214 style = { styles . ml2 }
0 commit comments