Browse Source

Fix next/link imports (#1153)

Nikhil Rao 1 year ago
parent
commit
2a92aba3a2
1 changed files with 1 additions and 1 deletions
  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()}