A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
refactor
ammarahm-edc332d3768063
diff --git a/apps/mobile/src/components/Dialog/DialogContainer.js b/apps/mobile/src/components/Dialog/DialogContainer.jsnew file mode 100644index 000000000..847bd9e00--- /dev/null+++ b/apps/mobile/src/components/Dialog/DialogContainer.js@@ -0,0 +1,27 @@+import React from 'react';+import { View } from 'react-native';+import { useTracked } from '../../provider';+import { DDS } from '../../services/DeviceDetection';+import { getElevation } from '../../utils';++const DialogContainer = ({width, height, ...restProps}) => {+ const [state,] = useTracked();+ const colors = state.colors;++ return (+ <View+ {...restProps}+ style={{+ ...getElevation(5),+ width: width || DDS.isLargeTablet() ? 350 : '80%',+ maxHeight: height || 350,+ borderRadius: 5,+ backgroundColor: colors.bg,+ paddingHorizontal: 12,+ paddingVertical: 15,+ }}+ />+ );+};++export default DialogContainer;