diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-06-01 16:13:10 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-06-05 12:11:55 +0200 |
| commit | ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087 (patch) | |
| tree | b1f7754eb50896ab3681e35fa4e08be642b940c9 /app/lib/styles.js | |
| parent | 5852c980980de53e00d76a0bdb4b41bf5c0f5b39 (diff) | |
| download | mullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.tar.xz mullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.zip | |
Add formatted source code
Diffstat (limited to 'app/lib/styles.js')
| -rw-r--r-- | app/lib/styles.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/lib/styles.js b/app/lib/styles.js index 840c7c79ab..4cde4fdfce 100644 --- a/app/lib/styles.js +++ b/app/lib/styles.js @@ -4,7 +4,9 @@ import { Styles } from 'reactxp'; type ExtractReturnType = (*) => Object; -export function createViewStyles<T: { [string]: Object }>(styles: T): $ObjMap<T, ExtractReturnType> { +export function createViewStyles<T: { [string]: Object }>( + styles: T, +): $ObjMap<T, ExtractReturnType> { const viewStyles = {}; for (const style of Object.keys(styles)) { viewStyles[style] = Styles.createViewStyle(styles[style]); @@ -12,10 +14,12 @@ export function createViewStyles<T: { [string]: Object }>(styles: T): $ObjMap<T, return viewStyles; } -export function createTextStyles<T: { [string]: Object }>(styles: T): $ObjMap<T, ExtractReturnType> { +export function createTextStyles<T: { [string]: Object }>( + styles: T, +): $ObjMap<T, ExtractReturnType> { const textStyles = {}; for (const style of Object.keys(styles)) { textStyles[style] = Styles.createTextStyle(styles[style]); } return textStyles; -}
\ No newline at end of file +} |
