Fix method name and missing curly brace (#6196)

This commit is contained in:
Karl Horky authored and Lucas Duailibe committed 2019-06-07 10:48:24 -03:00
1 parent 644b419328
commit f070f00385
1 file changed
+3 -3
+3 -3
View File
@@ -455,11 +455,11 @@ function isStyledComponents(path) {
isStyledIdentifier(tag.callee) ||
(tag.callee.type === "MemberExpression" &&
((tag.callee.object.type === "MemberExpression" &&
// styled.foo.attr({})``
// styled.foo.attrs({})``
(isStyledIdentifier(tag.callee.object.object) ||
// Component.extend.attr({)``
// Component.extend.attrs({})``
isStyledExtend(tag.callee.object))) ||
// styled(Component).attr({})``
// styled(Component).attrs({})``
(tag.callee.object.type === "CallExpression" &&
isStyledIdentifier(tag.callee.object.callee))))
);