Display numbers based on significant digits and format app menu
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as types from '../actions/actionTypes';
|
||||
|
||||
import CalcApp from '../containers/calcApp';
|
||||
import HelpApp from '../containers/helpApp';
|
||||
|
||||
const initialState = {
|
||||
isOpen: false,
|
||||
refdrawer: null,
|
||||
page: <CalcApp />,
|
||||
page: 'main',
|
||||
subtitle: 'Calculator Page',
|
||||
};
|
||||
|
||||
@@ -27,14 +24,14 @@ export default function menu(state = initialState, action = {}) {
|
||||
return {
|
||||
...state,
|
||||
isOpen: false,
|
||||
page: <CalcApp />,
|
||||
page: 'main',
|
||||
subtitle: 'Calculator Page',
|
||||
};
|
||||
case types.HELP:
|
||||
return {
|
||||
...state,
|
||||
isOpen: false,
|
||||
page: <HelpApp />,
|
||||
page: 'help',
|
||||
subtitle: 'Help',
|
||||
};
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user