MCPcopy Index your code
hub / github.com/Expensify/App / ExceededCommentLength

Function ExceededCommentLength

src/components/ExceededCommentLength.tsx:12–26  ·  view source on GitHub ↗
({maxCommentLength = CONST.MAX_COMMENT_LENGTH, isTaskTitle = false}: ExceededCommentLengthProps)

Source from the content-addressed store, hash-verified

10};
11
12function ExceededCommentLength({maxCommentLength = CONST.MAX_COMMENT_LENGTH, isTaskTitle = false}: ExceededCommentLengthProps) {
13 const styles = useThemeStyles();
14 const {numberFormat, translate} = useLocalize();
15
16 const translationKey = isTaskTitle ? 'composer.taskTitleExceededMaxLength' : 'composer.commentExceededMaxLength';
17
18 return (
19 <Text
20 style={[styles.textMicro, styles.textDanger, styles.chatItemComposeSecondaryRow, styles.mlAuto, styles.pl2]}
21 numberOfLines={1}
22 >
23 {translate(translationKey, numberFormat(maxCommentLength))}
24 </Text>
25 );
26}
27
28export default ExceededCommentLength;

Callers

nothing calls this directly

Calls 4

useThemeStylesFunction · 0.85
useLocalizeFunction · 0.85
numberFormatFunction · 0.85
translateFunction · 0.70

Tested by

no test coverage detected