aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/footer.tsx
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-12-16 02:03:01 +0800
committerGitHub <noreply@github.com>2017-12-16 02:03:01 +0800
commit3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3 (patch)
tree38a2de1b15985590b879f71fc17cbee35a17ba78 /packages/website/ts/components/footer.tsx
parentde8c445f961e1a09bed6a01397e36b96e0ea3d9a (diff)
parentc8e52882ca556ea06696a56e312f69284f99aa29 (diff)
downloaddexon-0x-contracts-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar
dexon-0x-contracts-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.gz
dexon-0x-contracts-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.bz2
dexon-0x-contracts-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.lz
dexon-0x-contracts-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.xz
dexon-0x-contracts-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.zst
dexon-0x-contracts-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.zip
Merge pull request #266 from 0xProject/fix/no-unused-vars
Remove all unused vars and imports
Diffstat (limited to 'packages/website/ts/components/footer.tsx')
-rw-r--r--packages/website/ts/components/footer.tsx33
1 files changed, 1 insertions, 32 deletions
diff --git a/packages/website/ts/components/footer.tsx b/packages/website/ts/components/footer.tsx
index 5e3c0479a..b26523094 100644
--- a/packages/website/ts/components/footer.tsx
+++ b/packages/website/ts/components/footer.tsx
@@ -3,11 +3,7 @@ import * as React from 'react';
import {
Link,
} from 'react-router-dom';
-import {HashLink} from 'react-router-hash-link';
-import {
- Link as ScrollLink,
-} from 'react-scroll';
-import {Styles, WebsitePaths} from 'ts/types';
+import {WebsitePaths} from 'ts/types';
import {constants} from 'ts/utils/constants';
interface MenuItemsBySection {
@@ -229,31 +225,4 @@ export class Footer extends React.Component<FooterProps, FooterState> {
</div>
);
}
- private renderHomepageLink(title: string) {
- const hash = title.toLowerCase();
- if (this.props.location.pathname === WebsitePaths.Home) {
- return (
- <ScrollLink
- style={linkStyle}
- to={hash}
- smooth={true}
- offset={0}
- duration={constants.HOME_SCROLL_DURATION_MS}
- containerId="home"
- >
- {title}
- </ScrollLink>
- );
- } else {
- return (
- <HashLink
- to={`/#${hash}`}
- className="text-decoration-none"
- style={linkStyle}
- >
- {title}
- </HashLink>
- );
- }
- }
}