You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Applied prettier to code base
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
import React, { Component } from 'react';
|
||||
import { Keyboard, View, Button, Text, StyleSheet, Linking, Image } from 'react-native';
|
||||
import PopupDialog, { DialogTitle, DialogButton } from 'react-native-popup-dialog';
|
||||
import DatePicker from 'react-native-datepicker'
|
||||
import moment from 'moment';
|
||||
import { _ } from 'lib/locale.js';
|
||||
import React, { Component } from "react";
|
||||
import { Keyboard, View, Button, Text, StyleSheet, Linking, Image } from "react-native";
|
||||
import PopupDialog, { DialogTitle, DialogButton } from "react-native-popup-dialog";
|
||||
import DatePicker from "react-native-datepicker";
|
||||
import moment from "moment";
|
||||
import { _ } from "lib/locale.js";
|
||||
|
||||
class SelectDateTimeDialog extends Component {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.dialog_ = null;
|
||||
@ -19,7 +18,7 @@ class SelectDateTimeDialog extends Component {
|
||||
this.setState({ date: newProps.date });
|
||||
}
|
||||
|
||||
if ('shown' in newProps) {
|
||||
if ("shown" in newProps) {
|
||||
this.show(newProps.shown);
|
||||
}
|
||||
}
|
||||
@ -67,28 +66,31 @@ class SelectDateTimeDialog extends Component {
|
||||
|
||||
return (
|
||||
<PopupDialog
|
||||
ref={(dialog) => { this.dialog_ = dialog; }}
|
||||
dialogTitle={<DialogTitle title={_('Set alarm')} />}
|
||||
ref={dialog => {
|
||||
this.dialog_ = dialog;
|
||||
}}
|
||||
dialogTitle={<DialogTitle title={_("Set alarm")} />}
|
||||
actions={popupActions}
|
||||
width={0.9}
|
||||
height={350}
|
||||
>
|
||||
<View style={{flex:1, margin: 20, alignItems:'center'}}>
|
||||
>
|
||||
<View style={{ flex: 1, margin: 20, alignItems: "center" }}>
|
||||
<DatePicker
|
||||
date={this.state.date}
|
||||
mode="datetime"
|
||||
placeholder={_('Select date')}
|
||||
placeholder={_("Select date")}
|
||||
format={this.dateTimeFormat()}
|
||||
confirmBtnText={_('Confirm')}
|
||||
cancelBtnText={_('Cancel')}
|
||||
onDateChange={(date) => { this.setState({ date: this.stringToDate(date) }); }}
|
||||
style={{width:300}}
|
||||
confirmBtnText={_("Confirm")}
|
||||
cancelBtnText={_("Cancel")}
|
||||
onDateChange={date => {
|
||||
this.setState({ date: this.stringToDate(date) });
|
||||
}}
|
||||
style={{ width: 300 }}
|
||||
/>
|
||||
</View>
|
||||
</PopupDialog>
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export { SelectDateTimeDialog };
|
||||
export { SelectDateTimeDialog };
|
||||
|
Reference in New Issue
Block a user