소스 검색

Fix next/link imports (#1153)

Nikhil Rao 2 년 전
부모
커밋
2a92aba3a2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pynecone/components/navigation/link.py

+ 1 - 1
pynecone/components/navigation/link.py

@@ -27,4 +27,4 @@ class Link(ChakraComponent):
     is_external: Var[bool]
 
     def _get_imports(self) -> imports.ImportDict:
-        return {**super()._get_imports(), **NextLink(href=self.href)._get_imports()}
+        return {**super()._get_imports(), **NextLink.create()._get_imports()}