From 5356b0e1186ab8bb835c118507ae27947ca6e8c2 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Wed, 7 Mar 2018 14:11:14 +0100 Subject: Small improvements to docs --- packages/react-docs/example/ts/docs.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/react-docs/example/ts/docs.tsx') diff --git a/packages/react-docs/example/ts/docs.tsx b/packages/react-docs/example/ts/docs.tsx index 98cd5b355..caff83422 100644 --- a/packages/react-docs/example/ts/docs.tsx +++ b/packages/react-docs/example/ts/docs.tsx @@ -5,7 +5,7 @@ import { Documentation } from '../../src/ts/components/documentation'; import { DocsInfo } from '../../src/ts/docs_info'; import { DocAgnosticFormat, DocsInfoConfig, SupportedDocJson, TypeDocNode } from '../../src/ts/types'; -import * as v1TypeDocJson from './json/0.1.12.json'; +import * as v0TypeDocJson from './json/0.1.12.json'; import * as v2TypeDocJson from './json/0.2.0.json'; /* tslint:disable:no-var-requires */ @@ -43,8 +43,8 @@ const docsInfo = new DocsInfo(docsInfoConfig); const availableVersions = ['0.1.12', '0.2.0']; const versionToDocJSON: { [semver: string]: object } = { - '0.1.12': v1TypeDocJson, - '0.2.0': v2TypeDocJson, + [availableVersions[0]]: v0TypeDocJson, + [availableVersions[1]]: v2TypeDocJson, }; export interface DocsProps {} @@ -58,8 +58,8 @@ export class Docs extends React.Component { constructor(props: DocsProps) { super(props); this.state = { - selectedVersion: '0.2.0', - docAgnosticFormat: docsInfo.convertToDocAgnosticFormat(v1TypeDocJson), + selectedVersion: availableVersions[1], + docAgnosticFormat: docsInfo.convertToDocAgnosticFormat(v0TypeDocJson), }; } public render() { -- cgit v1.2.3