From 4ea222bbffd7a378712320a2f366d5bbee5920af Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Wed, 18 Apr 2018 17:55:16 +0900 Subject: Bold property names --- packages/react-docs/src/components/type_definition.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/react-docs/src/components/type_definition.tsx b/packages/react-docs/src/components/type_definition.tsx index 6d24145a1..605b58fbd 100644 --- a/packages/react-docs/src/components/type_definition.tsx +++ b/packages/react-docs/src/components/type_definition.tsx @@ -159,12 +159,15 @@ export class TypeDefinition extends React.Component { - if (i === 0 || i === segments.length - 1) { + if (i === 0) { + segments[i] = `**${s}**`; + return; + } else if (i === segments.length - 1) { return; } const words = s.split(' '); const property = words[words.length - 1]; - words[words.length - 1] = `\n\n${property}`; + words[words.length - 1] = `\n\n**${property}**`; segments[i] = words.join(' '); }); const final = segments.join(PROPERTY_DESCRIPTION_DIVIDER); -- cgit v1.2.3