Skip to content

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

ui:new Button variant -Settings

alihamuh44174955c98d
diff --git a/apps/web/src/app.css b/apps/web/src/app.css
index 85f263205..66cbb3400 100644
--- a/apps/web/src/app.css
+++ b/apps/web/src/app.css
@@ -7,3 +7,7 @@
user-select: none;
cursor: default;
}
+
+.unselectable::-moz-focus-inner {
+ border: 0;
+}
diff --git a/apps/web/src/components/settings/index.js b/apps/web/src/components/settings/index.js
index d50d6d658..22501ff50 100644
--- a/apps/web/src/components/settings/index.js
+++ b/apps/web/src/components/settings/index.js
@@ -1,10 +1,11 @@
import React from "react";
-import * as Icon from "react-feather";
import TimeAgo from "timeago-react";
import { db, ev } from "../../common";
import { showSnack } from "../snackbar";
import ListItem from "../list-item";
import { Virtuoso as List } from "react-virtuoso";
+import {Box,Button} from 'rebass';
+import '../../App.css'
const dropdownRefs = [];
const menuItems = [
@@ -19,10 +20,12 @@ function sendOpenNoteEvent(note) {
ev.emit("onOpenNote", note);
}
-const Trash = () => {
+const Setting = () => {
return (
- <div>My name is ALi.</div>
+ <>
+ <Button className='unselectable' variant='setting'>General</Button>
+ </>
);
};
-export default Trash;
\ No newline at end of file
+export default Setting;
\ No newline at end of file
diff --git a/apps/web/src/navigation/index.js b/apps/web/src/navigation/index.js
index dfeb4e846..12b240f98 100644
--- a/apps/web/src/navigation/index.js
+++ b/apps/web/src/navigation/index.js
@@ -37,7 +37,7 @@ export const routes = {
settings: {
key: "settings",
title: "Settings",
- component: undefined,
+ component:Settings,
icon: Icon.Settings,
bottom: true
}
diff --git a/apps/web/src/theme.js b/apps/web/src/theme.js
index 5762fa7e7..ea6d507d0 100644
--- a/apps/web/src/theme.js
+++ b/apps/web/src/theme.js
@@ -143,6 +143,18 @@ export default {
":focus": {
outline: "none"
}
+ },
+ setting:{
+ bg:'transparent',
+ borderLeft:'0px Solid',
+ borderRight:'0px Solid',
+ borderTop:'0px Solid',
+ borderBottom:'1px Solid',
+ borderColor:'border',
+ color:'text',
+ textAlign:'left',
+ fontSize:'title',
+ fontFamily:'body'
}
},
shadows: shadowsLight
diff --git a/apps/web/src/views/Settings.js b/apps/web/src/views/Settings.js
index 4f5473175..e70a01eca 100644
--- a/apps/web/src/views/Settings.js
+++ b/apps/web/src/views/Settings.js
@@ -26,10 +26,9 @@ function Settings(){
return(
<Flex flexDirection="column" flex="1 1 auto">
- {(<Flex flexDirection="column" flex="1 1 auto">
+ <Flex flexDirection="column" flex="1 1 auto">
<Setting></Setting>
</Flex>
- )}
</Flex>
);
}