mirror of
https://github.com/wassname/talk.git
synced 2026-08-13 12:40:11 +08:00
Resolve linter issues
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user