summaryrefslogtreecommitdiff
path: root/src/components/Config.js
diff options
context:
space:
mode:
authorHaishan <[email protected]>2019-04-20 15:47:43 +0800
committerHaishan <[email protected]>2019-04-20 16:42:56 +0800
commiteda2501b1d68c6f82a4a824ffe12caf5be7b33f2 (patch)
tree25ada6388737a698c66380fe5bab22d5e4c4bf69 /src/components/Config.js
parente68f4ce9664f8164fd6aab284feb9ebed9f2ecdb (diff)
feat(config): add button to clear local storage
Diffstat (limited to 'src/components/Config.js')
-rw-r--r--src/components/Config.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/Config.js b/src/components/Config.js
index 6f4c336..01bc4bd 100644
--- a/src/components/Config.js
+++ b/src/components/Config.js
@@ -3,11 +3,13 @@ import PropTypes from 'prop-types';
import { useStoreState, useActions } from 'm/store';
import { getConfigs, fetchConfigs, updateConfigs } from 'd/configs';
+import { clearStorage } from 'd/app';
import ContentHeader from 'c/ContentHeader';
import Switch from 'c/Switch';
import ToggleSwitch from 'c/ToggleSwitch';
import Input from 'c/Input';
+import Button from 'c/Button';
import s0 from 'c/Config.module.css';
const optionsRule = [
@@ -190,6 +192,15 @@ function Config({ configs }) {
/>
</div>
</div>
+
+ <div className={s0.sep}>
+ <div />
+ </div>
+
+ <div className={s0.section}>
+ <div className={s0.label}>Actions</div>
+ <Button label="Log out" onClick={clearStorage} />
+ </div>
</div>
);
}