mirror of
https://github.com/wassname/talk.git
synced 2026-07-15 11:26:58 +08:00
Resolve linter issues
This commit is contained in:
@@ -413,7 +413,9 @@ export default (reaction, options = {}) =>
|
||||
update: (
|
||||
proxy,
|
||||
{
|
||||
data: { [`create${Reaction}Action`]: { [reaction]: action } },
|
||||
data: {
|
||||
[`create${Reaction}Action`]: { [reaction]: action },
|
||||
},
|
||||
}
|
||||
) => {
|
||||
const a = {
|
||||
@@ -466,7 +468,10 @@ export default (reaction, options = {}) =>
|
||||
${fragments.comment ? fragments.comment : ''}
|
||||
`,
|
||||
}),
|
||||
connect(mapStateToProps, mapDispatchToProps),
|
||||
connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
),
|
||||
withDeleteReaction,
|
||||
withPostReaction
|
||||
);
|
||||
|
||||
@@ -52,5 +52,8 @@ export default ({ sortBy = 'created_at', sortOrder = 'DESC', label }) =>
|
||||
);
|
||||
}
|
||||
}
|
||||
return connect(mapStateToProps, mapDispatchToProps)(WithSortOption);
|
||||
return connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(WithSortOption);
|
||||
});
|
||||
|
||||
@@ -139,7 +139,10 @@ export default (tag, options = {}) =>
|
||||
}),
|
||||
withAddTag,
|
||||
withRemoveTag,
|
||||
connect(mapStateToProps, null)
|
||||
connect(
|
||||
mapStateToProps,
|
||||
null
|
||||
)
|
||||
);
|
||||
|
||||
WithTags.displayName = `WithTags(${getDisplayName(WrappedComponent)})`;
|
||||
|
||||
@@ -180,7 +180,14 @@ function getReactionConfig(reaction) {
|
||||
[`${Reaction}Action`]: {
|
||||
// This will load the user for the specific action. We'll limit this to the
|
||||
// admin users only or the current logged in user.
|
||||
user({ user_id }, _, { loaders: { Users }, user }) {
|
||||
user(
|
||||
{ user_id },
|
||||
_,
|
||||
{
|
||||
loaders: { Users },
|
||||
user,
|
||||
}
|
||||
) {
|
||||
if (user && (user.can(SEARCH_OTHER_USERS) || user_id === user.id)) {
|
||||
return Users.getByID.load(user_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user