浏览代码

Fix next/link imports (#1153)

Nikhil Rao 1 年之前
父节点
当前提交
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()}