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/website/ts/components | |
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/website/ts/components')
-rw-r--r-- | packages/website/ts/components/top_bar/top_bar.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx index 2d6f2b235..29c68524c 100644 --- a/packages/website/ts/components/top_bar/top_bar.tsx +++ b/packages/website/ts/components/top_bar/top_bar.tsx @@ -38,6 +38,7 @@ interface TopBarProps { docsInfo?: DocsInfo; style?: React.CSSProperties; isNightVersion?: boolean; + onVersionSelected?: (semver: string) => void; } interface TopBarState { @@ -320,6 +321,7 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> { onMenuItemClick={this._onMenuButtonClick.bind(this)} selectedVersion={this.props.docsVersion} versions={this.props.availableDocVersions} + onVersionSelected={this.props.onVersionSelected} /> </div> ); |