diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-05 18:19:28 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-05 18:19:28 +0800 |
commit | cc6338d0482abd2db253b8755109d4aec801e88d (patch) | |
tree | c4d9f36b8f99086d0b86ee71d14b87404d38b360 /packages/website/ts/pages/landing | |
parent | 57b65726d65378deed6506de1287d9b8e2d2c6ec (diff) | |
download | dexon-sol-tools-cc6338d0482abd2db253b8755109d4aec801e88d.tar.gz dexon-sol-tools-cc6338d0482abd2db253b8755109d4aec801e88d.tar.zst dexon-sol-tools-cc6338d0482abd2db253b8755109d4aec801e88d.zip |
Add `switch-default` tslint rule and add missing default statement
Diffstat (limited to 'packages/website/ts/pages/landing')
-rw-r--r-- | packages/website/ts/pages/landing/landing.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/website/ts/pages/landing/landing.tsx b/packages/website/ts/pages/landing/landing.tsx index 02ecfa117..9d5e54c22 100644 --- a/packages/website/ts/pages/landing/landing.tsx +++ b/packages/website/ts/pages/landing/landing.tsx @@ -349,6 +349,9 @@ export class Landing extends React.Component<LandingProps, LandingState> { case ScreenWidths.Lg: colWidth = isRelayersOnly ? 2 : 2 - i % 2; break; + + default: + throw new Error(`Encountered unknown ScreenWidths value: ${this.state.screenWidth}`); } return ( <div key={`project-${project.logoFileName}`} className={`col col-${colWidth} center`}> |