Skip to content

Commit

Permalink
Fix method name and missing curly brace (#6196)
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky authored and duailibe committed Jun 7, 2019
1 parent 644b419 commit f070f00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/language-js/embed.js
Expand Up @@ -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))))
);
Expand Down

0 comments on commit f070f00

Please sign in to comment.