Resolve linter issues

This commit is contained in:
Chi Vinh Le
2018-06-05 04:28:54 +02:00
parent d9a1d739dc
commit ccff6ed63b
148 changed files with 1171 additions and 265 deletions
@@ -20,7 +20,9 @@ class AccountDeletionRequestedSign extends React.Component {
};
render() {
const { me: { scheduledDeletionDate } } = this.props.root;
const {
me: { scheduledDeletionDate },
} = this.props.root;
const deletionScheduledFor = moment(scheduledDeletionDate).format(
'MMM Do YYYY, h:mm a'
@@ -36,7 +36,11 @@ class DownloadCommentHistory extends Component {
};
render() {
const { root: { me: { lastAccountDownload } } } = this.props;
const {
root: {
me: { lastAccountDownload },
},
} = this.props;
const now = new Date();
const lastAccountDownloadDate =
@@ -18,7 +18,10 @@ const withData = withFragments({
});
export default compose(
connect(null, mapDispatchToProps),
connect(
null,
mapDispatchToProps
),
withCancelAccountDeletion,
withData,
excludeIf(({ root: { me } }) => !me || !me.scheduledDeletionDate)
@@ -21,7 +21,10 @@ const withData = withFragments({
});
export default compose(
connect(null, mapDispatchToProps),
connect(
null,
mapDispatchToProps
),
withRequestAccountDeletion,
withCancelAccountDeletion,
withData
@@ -28,7 +28,10 @@ class DownloadCommentHistoryContainer extends Component {
const mapDispatchToProps = dispatch => bindActionCreators({ notify }, dispatch);
const enhance = compose(
connect(null, mapDispatchToProps),
connect(
null,
mapDispatchToProps
),
withFragments({
root: gql`
fragment TalkDownloadCommentHistory_DownloadCommentHistorySection_root on RootQuery {