diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-07 20:25:15 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-07 20:25:15 +0800 |
commit | 6f8a70834b72d678cd9d171d7bb0a3a2cfb4134d (patch) | |
tree | 7d9030c062e22043cd49f27527c9d4537e41e618 /packages/react-docs/example/ts/index.tsx | |
parent | 327cc307b35bf4a38c86f87c45718fd456025035 (diff) | |
download | dexon-0x-contracts-6f8a70834b72d678cd9d171d7bb0a3a2cfb4134d.tar.gz dexon-0x-contracts-6f8a70834b72d678cd9d171d7bb0a3a2cfb4134d.tar.zst dexon-0x-contracts-6f8a70834b72d678cd9d171d7bb0a3a2cfb4134d.zip |
Add onSelectedVersion callback so it can be handled in any way the caller wishes
Diffstat (limited to 'packages/react-docs/example/ts/index.tsx')
-rw-r--r-- | packages/react-docs/example/ts/index.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/react-docs/example/ts/index.tsx b/packages/react-docs/example/ts/index.tsx index 8cfa8451c..bf7574e7b 100644 --- a/packages/react-docs/example/ts/index.tsx +++ b/packages/react-docs/example/ts/index.tsx @@ -50,7 +50,7 @@ const sourceUrl = `${ docsInfoConfig.packageUrl }/blob/@0xproject/web3-wrapper%40${selectedVersion}/packages/web3-wrapper`; -import * as typeDocJson from './json/web3_wrapper_typedoc_output.json'; +import * as typeDocJson from './json/0.2.0.json'; const docAgnosticFormat = docsInfo.convertToDocAgnosticFormat(typeDocJson); render( @@ -61,7 +61,12 @@ render( docsInfo={docsInfo} docAgnosticFormat={docAgnosticFormat} sourceUrl={sourceUrl} + onVersionSelected={onVersionSelected} /> </MuiThemeProvider>, document.getElementById('app'), ); + +function onVersionSelected(semver: string) { + // TODO +} |