diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-14 16:36:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 16:36:13 +0800 |
commit | 58fa35641d3016ef106496c929e48febcf827dc6 (patch) | |
tree | 3f33c2faac3b55e52098ab0b5b9883a9b62f5aee /packages/website/ts/components/footer.tsx | |
parent | 6aed4fb1ae27dabed027c855f2cbdc0bfb4f3b6b (diff) | |
parent | b74957acdfc8d67d154bcb4698acd7575db7cc47 (diff) | |
download | dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.tar dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.tar.gz dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.tar.bz2 dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.tar.lz dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.tar.xz dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.tar.zst dexon-sol-tools-58fa35641d3016ef106496c929e48febcf827dc6.zip |
Merge pull request #585 from 0xProject/feature/typedef
Add missing type definitions. Enable typedef linter rule
Diffstat (limited to 'packages/website/ts/components/footer.tsx')
-rw-r--r-- | packages/website/ts/components/footer.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/website/ts/components/footer.tsx b/packages/website/ts/components/footer.tsx index 487b039b2..c44e41084 100644 --- a/packages/website/ts/components/footer.tsx +++ b/packages/website/ts/components/footer.tsx @@ -50,7 +50,7 @@ export class Footer extends React.Component<FooterProps, FooterState> { selectedLanguage: props.translate.getLanguage(), }; } - public render() { + public render(): React.ReactNode { const menuItemsBySection: MenuItemsBySection = { [Key.Documentation]: [ { @@ -180,14 +180,14 @@ export class Footer extends React.Component<FooterProps, FooterState> { </div> ); } - private _renderIcon(fileName: string) { + private _renderIcon(fileName: string): React.ReactNode { return ( <div style={{ height: ICON_DIMENSION, width: ICON_DIMENSION }}> <img src={`/images/social/${fileName}`} style={{ width: ICON_DIMENSION }} /> </div> ); } - private _renderMenuItem(item: FooterMenuItem) { + private _renderMenuItem(item: FooterMenuItem): React.ReactNode { const titleToIcon: { [title: string]: string } = { [this.props.translate.get(Key.RocketChat, Deco.Cap)]: 'rocketchat.png', [this.props.translate.get(Key.Blog, Deco.Cap)]: 'medium.png', @@ -222,7 +222,7 @@ export class Footer extends React.Component<FooterProps, FooterState> { </div> ); } - private _renderHeader(key: Key) { + private _renderHeader(key: Key): React.ReactNode { const headerStyle = { color: colors.grey400, letterSpacing: 2, @@ -235,7 +235,7 @@ export class Footer extends React.Component<FooterProps, FooterState> { </div> ); } - private _updateLanguage(e: any, index: number, value: Language) { + private _updateLanguage(e: any, index: number, value: Language): void { this.setState({ selectedLanguage: value, }); |