From 87044313c2219f7130c1856f636f3db29b0fd1c4 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Sun, 18 Mar 2018 18:45:06 +0100 Subject: Capitalize rather then upper-case section headers --- packages/react-shared/src/components/section_header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/react-shared') diff --git a/packages/react-shared/src/components/section_header.tsx b/packages/react-shared/src/components/section_header.tsx index ee34a6c09..2ef5f61ee 100644 --- a/packages/react-shared/src/components/section_header.tsx +++ b/packages/react-shared/src/components/section_header.tsx @@ -48,7 +48,7 @@ export class SectionHeader extends React.Component Date: Tue, 20 Mar 2018 15:28:25 +0000 Subject: Small doc fixes: remove duplicate types and add function array --- packages/react-shared/src/components/nested_sidebar_menu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/react-shared') diff --git a/packages/react-shared/src/components/nested_sidebar_menu.tsx b/packages/react-shared/src/components/nested_sidebar_menu.tsx index 2225bd197..c4c87401a 100644 --- a/packages/react-shared/src/components/nested_sidebar_menu.tsx +++ b/packages/react-shared/src/components/nested_sidebar_menu.tsx @@ -122,7 +122,7 @@ export class NestedSidebarMenu extends React.Component +
  • Date: Wed, 21 Mar 2018 18:04:27 +0000 Subject: Fix sectionName and menuItemName to display with spaces rather then dashes --- packages/react-shared/CHANGELOG.md | 4 +++- packages/react-shared/src/components/markdown_section.tsx | 3 ++- packages/react-shared/src/components/nested_sidebar_menu.tsx | 5 +++-- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'packages/react-shared') diff --git a/packages/react-shared/CHANGELOG.md b/packages/react-shared/CHANGELOG.md index 43b92d58a..ae13588dc 100644 --- a/packages/react-shared/CHANGELOG.md +++ b/packages/react-shared/CHANGELOG.md @@ -1,3 +1,5 @@ # CHANGELOG -## v0.0.1 - _March 8, 2018_ +## v0.0.2 - _TBD_ + + * Fix section and menuItem text display to replace dashes with spaces. diff --git a/packages/react-shared/src/components/markdown_section.tsx b/packages/react-shared/src/components/markdown_section.tsx index d24a43dcb..e895afd2a 100644 --- a/packages/react-shared/src/components/markdown_section.tsx +++ b/packages/react-shared/src/components/markdown_section.tsx @@ -43,6 +43,7 @@ export class MarkdownSection extends React.Component diff --git a/packages/react-shared/src/components/nested_sidebar_menu.tsx b/packages/react-shared/src/components/nested_sidebar_menu.tsx index c4c87401a..d81bd3c3d 100644 --- a/packages/react-shared/src/components/nested_sidebar_menu.tsx +++ b/packages/react-shared/src/components/nested_sidebar_menu.tsx @@ -85,6 +85,7 @@ export class NestedSidebarMenu extends React.Component { + const finalMenuItemName = menuItemName.replace(/-/g, ' '); const id = utils.getIdFromName(menuItemName); return (
    @@ -96,11 +97,11 @@ export class NestedSidebarMenu extends React.Component - {menuItemName} + {finalMenuItemName} {this._renderMenuItemSubsections(menuItemName)} -- cgit v1.2.3 From 46b7fecafe283e814e2088373ec857747e4cf314 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Thu, 22 Mar 2018 11:56:12 +0000 Subject: Create helper function for converting dashes names for display --- packages/react-shared/src/components/markdown_section.tsx | 2 +- packages/react-shared/src/components/nested_sidebar_menu.tsx | 4 ++-- packages/react-shared/src/components/section_header.tsx | 2 +- packages/react-shared/src/utils/utils.ts | 3 +++ 4 files changed, 7 insertions(+), 4 deletions(-) (limited to 'packages/react-shared') diff --git a/packages/react-shared/src/components/markdown_section.tsx b/packages/react-shared/src/components/markdown_section.tsx index e895afd2a..449e8a045 100644 --- a/packages/react-shared/src/components/markdown_section.tsx +++ b/packages/react-shared/src/components/markdown_section.tsx @@ -43,7 +43,7 @@ export class MarkdownSection extends React.Component { - const finalSectionName = sectionName.replace(/-/g, ' '); + const finalSectionName = utils.convertDashesToSpaces(sectionName); if (this.props.shouldDisplaySectionHeaders) { const id = utils.getIdFromName(sectionName); return ( @@ -85,7 +85,7 @@ export class NestedSidebarMenu extends React.Component { - const finalMenuItemName = menuItemName.replace(/-/g, ' '); + const finalMenuItemName = utils.convertDashesToSpaces(menuItemName); const id = utils.getIdFromName(menuItemName); return (
    diff --git a/packages/react-shared/src/components/section_header.tsx b/packages/react-shared/src/components/section_header.tsx index 2ef5f61ee..0224c2127 100644 --- a/packages/react-shared/src/components/section_header.tsx +++ b/packages/react-shared/src/components/section_header.tsx @@ -35,7 +35,7 @@ export class SectionHeader extends React.Component