Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

refactor: some code for later use

alihamuhe07d80f89f28
diff --git a/apps/web/src/views/General.js b/apps/web/src/views/General.js
index 2a962be4a..15f69e25e 100644
--- a/apps/web/src/views/General.js
+++ b/apps/web/src/views/General.js
@@ -7,7 +7,6 @@ function General() {
<Flex flexDirection="column" flex="1 1 auto">
<Button variant="setting">Reset to Factory Settings</Button>
<Button variant="setting">Delete all Notes</Button>
- <Button variant="setting">Font Size</Button>
</Flex>
</Flex>
);
diff --git a/apps/web/src/views/Settings.js b/apps/web/src/views/Settings.js
index df9f3fe7a..88be4665d 100644
--- a/apps/web/src/views/Settings.js
+++ b/apps/web/src/views/Settings.js
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from "react";
import { Box, Button, Flex, Text } from "rebass";
import * as Icon from "react-feather";
-import { Switch } from "@rebass/forms";
+import { Switch, Select } from "@rebass/forms";
import "../app.css";
import { changeTheme, isDarkTheme, changeAccent } from "../utils/theme";
@@ -87,6 +87,35 @@ const Settings = props => {
/>
</Flex>
</Flex>
+ {/* <Flex flexDirection="row" justifyContent="center" pt="15px">
+ <Text width={1 / 2}>Font Size</Text>{" "}
+ <Flex width={1 / 2} justifyContent="right">
+ <Select
+ id="country"
+ name="country"
+ defaultValue="46"
+ fontSize="14px"
+ py="0px"
+ pr="32px"
+ DownArrow="false"
+ >
+ {[
+ { label: "red", code: "12" },
+ { label: "orange", code: "05" },
+ { label: "yellow", code: "16" },
+ { label: "green", code: "36" },
+ { label: "blue", code: "46" },
+ { label: "purple", code: "64" },
+ { label: "gray", code: "75" },
+ { label: "lightblue", code: "88" },
+ { label: "indigo", code: "99" },
+ { label: "lightpink", code: "12" }
+ ].map(color => (
+ <option key={color.label}>{color.code}</option>
+ ))}
+ </Select>
+ </Flex>
+ </Flex> */}
</Flex>
</Box>
<Button variant="setting">Terms of Service</Button>