Skip to content

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

feat: add github issue dialog

ammarahm-ed21c53b2bfbef
diff --git a/apps/mobile/src/components/Github/issue.js b/apps/mobile/src/components/Github/issue.js
new file mode 100644
index 000000000..0ae720660
--- /dev/null
+++ b/apps/mobile/src/components/Github/issue.js
@@ -0,0 +1,78 @@
+import React, {useRef} from 'react';
+import {Text, TextInput, View} from 'react-native';
+import {useTracked} from '../../provider';
+import {openLinkInBrowser} from '../../utils/functions';
+import {SIZE} from '../../utils/SizeUtils';
+import {Button} from '../Button';
+import DialogHeader from '../Dialog/dialog-header';
+import Seperator from '../Seperator';
+import Paragraph from '../Typography/Paragraph';
+
+export const Issue = () => {
+ const [state, dispatch] = useTracked();
+ const colors = state.colors;
+ const value = useRef(null);
+
+ onPress = async () => {};
+
+ return (
+ <View
+ style={{
+ paddingHorizontal: 12
+ }}>
+ <DialogHeader
+ title="Submit an issue"
+ paragraph="Let us know if you are facing any issue while using Notesnook."
+ />
+
+ <Seperator half />
+
+ <TextInput
+ placeholder="Tell us what issue you have faced."
+ multiline
+ numberOfLines={5}
+ textAlignVertical="top"
+ onChangeText={v => (value.current = v)}
+ style={{
+ borderWidth: 1,
+ borderColor: colors.nav,
+ borderRadius: 10,
+ padding: 12,
+ fontFamily: 'OpenSans-Regular',
+ maxHeight: 150
+ }}
+ />
+
+ <Seperator />
+ <Button
+ onPress={onPress}
+ title="Submit"
+ height={50}
+ width="100%"
+ type="accent"
+ />
+
+ <Paragraph
+ color={colors.icon}
+ size={SIZE.xs + 1}
+ style={{
+ marginTop: 10,
+ textAlign: 'center'
+ }}>
+ If you want to ask something general or request a feature, we would suggest that
+ you{' '}
+ <Text
+ style={{
+ textDecorationLine: 'underline'
+ }}
+ onPress={async () => {
+ try {
+ await openLinkInBrowser('https://discord.gg/zQBK97EE22', colors);
+ } catch (e) {}
+ }}>
+ join our community on Discord.
+ </Text>
+ </Paragraph>
+ </View>
+ );
+};