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

Commit

Permalink
Add token options to setting reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
yasharAyari committed Feb 13, 2019
1 parent ce7cab0 commit 88008d0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/store/reducers/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,20 @@ import actionTypes from '../../constants/actions';
import { currencyKeys } from '../../constants/currencies';
import { merge } from '../../utilities/helpers';
import { themes } from '../../constants/styleGuide';
import { tokenKeys } from '../../constants/tokens';

const createDefaultTokenList = () => {
const list = {};
tokenKeys.forEach((item) => { list[item] = false; });
return list;
};
export const INITIAL_STATE = {
theme: themes.light,
currency: currencyKeys[0],
token: {
active: tokenKeys[0],
list: createDefaultTokenList(),
},
};

/**
Expand Down

0 comments on commit 88008d0

Please sign in to comment.