Procházet zdrojové kódy

Fix next/link imports (#1153)

Nikhil Rao před 2 roky
rodič
revize
2a92aba3a2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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()}