From ef6f52e722ffb07ecf6d0da79f9194c4cf0d14d1 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Wed, 21 Feb 2018 11:54:03 -0800 Subject: Remove extenuous defaultProps --- packages/website/ts/components/footer.tsx | 3 --- packages/website/ts/components/top_bar/top_bar.tsx | 1 - 2 files changed, 4 deletions(-) (limited to 'packages/website') diff --git a/packages/website/ts/components/footer.tsx b/packages/website/ts/components/footer.tsx index 1b6fabf2b..de20d074d 100644 --- a/packages/website/ts/components/footer.tsx +++ b/packages/website/ts/components/footer.tsx @@ -44,9 +44,6 @@ interface FooterState { } export class Footer extends React.Component { - public static defaultProps: Partial = { - translate: new Translate(), - }; constructor(props: FooterProps) { super(); this.state = { diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx index 14b10a8bb..2723c2218 100644 --- a/packages/website/ts/components/top_bar/top_bar.tsx +++ b/packages/website/ts/components/top_bar/top_bar.tsx @@ -81,7 +81,6 @@ export class TopBar extends React.Component { shouldFullWidth: false, style: {}, isNightVersion: false, - translate: new Translate(), }; constructor(props: TopBarProps) { super(props); -- cgit