Fix method name and missing curly brace (#6196)

master
Karl Horky 2019-06-07 15:48:24 +02:00 committed by Lucas Duailibe
parent 644b419328
commit f070f00385
1 changed files with 3 additions and 3 deletions

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))))
);