aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-07 21:11:14 +0800
committerFabio Berger <me@fabioberger.com>2018-03-07 21:11:14 +0800
commit5356b0e1186ab8bb835c118507ae27947ca6e8c2 (patch)
tree7757b34077d229dc9a22f8874f3131993afc2679 /packages/react-docs
parente31309f213e9b900225b077cb27792958ba1ad5d (diff)
downloaddexon-sol-tools-5356b0e1186ab8bb835c118507ae27947ca6e8c2.tar.gz
dexon-sol-tools-5356b0e1186ab8bb835c118507ae27947ca6e8c2.tar.zst
dexon-sol-tools-5356b0e1186ab8bb835c118507ae27947ca6e8c2.zip
Small improvements to docs
Diffstat (limited to 'packages/react-docs')
-rw-r--r--packages/react-docs/example/ts/docs.tsx10
1 files changed, 5 insertions, 5 deletions
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<DocsProps, DocsState> {
constructor(props: DocsProps) {
super(props);
this.state = {
- selectedVersion: '0.2.0',
- docAgnosticFormat: docsInfo.convertToDocAgnosticFormat(v1TypeDocJson),
+ selectedVersion: availableVersions[1],
+ docAgnosticFormat: docsInfo.convertToDocAgnosticFormat(v0TypeDocJson),
};
}
public render() {