1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Revert "Applied prettier to code base"

This reverts commit c4f19465a6.
This commit is contained in:
Laurent Cozic
2018-03-09 20:59:12 +00:00
parent 5e8b09f5af
commit 55c5ddedf4
203 changed files with 7883 additions and 13355 deletions

View File

@@ -1,9 +1,10 @@
const React = require("react");
const { Text, Modal, View, StyleSheet, Button } = require("react-native");
const { themeStyle } = require("lib/components/global-style.js");
const { _ } = require("lib/locale");
const React = require('react');
const { Text, Modal, View, StyleSheet, Button } = require('react-native');
const { themeStyle } = require('lib/components/global-style.js');
const { _ } = require('lib/locale');
class ModalDialog extends React.Component {
constructor() {
super();
this.styles_ = {};
@@ -19,20 +20,20 @@ class ModalDialog extends React.Component {
let styles = {
modalWrapper: {
flex: 1,
justifyContent: "center",
justifyContent: 'center',
},
modalContentWrapper: {
flex: 1,
flexDirection: "column",
flex:1,
flexDirection: 'column',
backgroundColor: theme.backgroundColor,
borderWidth: 1,
borderColor: theme.dividerColor,
borderColor:theme.dividerColor,
margin: 20,
padding: 10,
},
modalContentWrapper2: {
paddingTop: 10,
flex: 1,
flex:1,
},
title: {
borderBottomWidth: 1,
@@ -40,7 +41,7 @@ class ModalDialog extends React.Component {
paddingBottom: 10,
},
buttonRow: {
flexDirection: "row",
flexDirection: 'row',
borderTopWidth: 1,
borderTopColor: theme.dividerColor,
paddingTop: 10,
@@ -56,16 +57,18 @@ class ModalDialog extends React.Component {
return (
<View style={this.styles().modalWrapper}>
<Modal transparent={true} visible={true} onRequestClose={() => {}}>
<Modal transparent={true} visible={true} onRequestClose={() => { }} >
<View style={this.styles().modalContentWrapper}>
<Text style={this.styles().title}>Title</Text>
<View style={this.styles().modalContentWrapper2}>{ContentComponent}</View>
<View style={this.styles().modalContentWrapper2}>
{ContentComponent}
</View>
<View style={this.styles().buttonRow}>
<View style={{ flex: 1 }}>
<Button title={_("OK")} onPress={() => {}} />
<View style={{flex:1}}>
<Button title={_('OK')} onPress={() => {}}></Button>
</View>
<View style={{ flex: 1, marginLeft: 5 }}>
<Button title={_("Cancel")} onPress={() => {}} />
<View style={{flex:1, marginLeft: 5}}>
<Button title={_('Cancel')} onPress={() => {}}></Button>
</View>
</View>
</View>
@@ -75,4 +78,4 @@ class ModalDialog extends React.Component {
}
}
module.exports = ModalDialog;
module.exports = ModalDialog;