Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
feat(const): add /const folder which stores project's constants
Browse files Browse the repository at this point in the history
feat(const): add /const folder which stores project's constants
  • Loading branch information
Metnew committed Sep 4, 2017
1 parent 6c5fd30 commit 9afc58f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/common/const/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// @flow
// Your const values live here.
const defaultWindowInnerWidth = 1025
export const getWindowInnerWidth = (window: Object): number => {
return window && window.innerWidth
? window.innerWidth
: defaultWindowInnerWidth
}

0 comments on commit 9afc58f

Please sign in to comment.