aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared/src/components
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-16 23:38:05 +0800
committerFabio Berger <me@fabioberger.com>2018-10-16 23:38:05 +0800
commit17fb4d5b5703df2a86be0c2f1210c1327debc033 (patch)
tree76dfb836fc5f5f1a18904bf61005e99ffa682e22 /packages/react-shared/src/components
parent05f7b733076b566e17883695e85874db040f5a54 (diff)
downloaddexon-sol-tools-17fb4d5b5703df2a86be0c2f1210c1327debc033.tar
dexon-sol-tools-17fb4d5b5703df2a86be0c2f1210c1327debc033.tar.gz
dexon-sol-tools-17fb4d5b5703df2a86be0c2f1210c1327debc033.tar.bz2
dexon-sol-tools-17fb4d5b5703df2a86be0c2f1210c1327debc033.tar.lz
dexon-sol-tools-17fb4d5b5703df2a86be0c2f1210c1327debc033.tar.xz
dexon-sol-tools-17fb4d5b5703df2a86be0c2f1210c1327debc033.tar.zst
dexon-sol-tools-17fb4d5b5703df2a86be0c2f1210c1327debc033.zip
chore: Remove unused prop
Diffstat (limited to 'packages/react-shared/src/components')
-rw-r--r--packages/react-shared/src/components/markdown_section.tsx6
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/react-shared/src/components/markdown_section.tsx b/packages/react-shared/src/components/markdown_section.tsx
index 9f5855d16..d5de324c3 100644
--- a/packages/react-shared/src/components/markdown_section.tsx
+++ b/packages/react-shared/src/components/markdown_section.tsx
@@ -19,7 +19,6 @@ export interface MarkdownSectionProps {
markdownContent: string;
headerSize?: HeaderSizes;
githubLink?: string;
- shouldReformatTitle?: boolean;
alternativeSectionTitle?: string;
}
@@ -36,7 +35,6 @@ export interface MarkdownSectionState {
export class MarkdownSection extends React.Component<MarkdownSectionProps, MarkdownSectionState> {
public static defaultProps: Partial<MarkdownSectionProps> = {
headerSize: HeaderSizes.H3,
- shouldReformatTitle: true,
};
constructor(props: MarkdownSectionProps) {
super(props);
@@ -48,9 +46,7 @@ export class MarkdownSection extends React.Component<MarkdownSectionProps, Markd
const { sectionName, markdownContent, headerSize, githubLink } = this.props as PropsWithDefaults;
const id = utils.getIdFromName(sectionName);
- const formattedSectionName = this.props.shouldReformatTitle
- ? utils.convertCamelCaseToSpaces(sectionName)
- : sectionName;
+ const formattedSectionName = utils.convertCamelCaseToSpaces(sectionName);
const title = !_.isUndefined(this.props.alternativeSectionTitle)
? this.props.alternativeSectionTitle
: formattedSectionName;