From f140cc812aa5ee3ac89832858a3ad99724200671 Mon Sep 17 00:00:00 2001 From: Henning Perl Date: Wed, 6 Mar 2024 12:38:27 +0100 Subject: [PATCH] fix imports --- examples/preact-spa/src/app.tsx | 2 +- examples/preact-spa/src/login.tsx | 2 +- examples/preact-spa/src/recovery.tsx | 2 +- examples/preact-spa/src/register.tsx | 2 +- examples/preact-spa/src/sdk.ts | 2 +- examples/preact-spa/src/settings.tsx | 2 +- examples/preact-spa/src/verification.tsx | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/preact-spa/src/app.tsx b/examples/preact-spa/src/app.tsx index ffe1e263b..133d08ac9 100644 --- a/examples/preact-spa/src/app.tsx +++ b/examples/preact-spa/src/app.tsx @@ -1,7 +1,7 @@ import { Session } from "@ory/client" import { Typography } from "@ory/elements-preact" import { useEffect, useState } from "preact/hooks" -import { useLocation } from "wouter" +import { useLocation } from "wouter-preact" import "./app.css" import { sdk, sdkError } from "./sdk" diff --git a/examples/preact-spa/src/login.tsx b/examples/preact-spa/src/login.tsx index bdd8a6e79..63736db2a 100644 --- a/examples/preact-spa/src/login.tsx +++ b/examples/preact-spa/src/login.tsx @@ -2,7 +2,7 @@ import { LoginFlow, UpdateLoginFlowBody } from "@ory/client" import { UserAuthCard } from "@ory/elements-preact" import { useCallback, useEffect, useState } from "preact/hooks" import { sdk, sdkError, getSearchParam } from "./sdk" -import { useLocation } from "wouter" +import { useLocation } from "wouter-preact" export const Login = () => { const [flow, setFlow] = useState(null) diff --git a/examples/preact-spa/src/recovery.tsx b/examples/preact-spa/src/recovery.tsx index 16029ff5e..4beb8ebcd 100644 --- a/examples/preact-spa/src/recovery.tsx +++ b/examples/preact-spa/src/recovery.tsx @@ -1,7 +1,7 @@ import { RecoveryFlow, UpdateRecoveryFlowBody } from "@ory/client" import { UserAuthCard } from "@ory/elements-preact" import { useCallback, useEffect, useState } from "preact/hooks" -import { useLocation } from "wouter" +import { useLocation } from "wouter-preact" import { getSearchParam, sdk, sdkError } from "./sdk" export const Recovery = () => { diff --git a/examples/preact-spa/src/register.tsx b/examples/preact-spa/src/register.tsx index 6d8fcf16a..8b4f1728f 100644 --- a/examples/preact-spa/src/register.tsx +++ b/examples/preact-spa/src/register.tsx @@ -2,7 +2,7 @@ import { RegistrationFlow, UpdateRegistrationFlowBody } from "@ory/client" import { UserAuthCard } from "@ory/elements-preact" import { useCallback, useEffect, useState } from "preact/hooks" import { getSearchParam, sdk, sdkError } from "./sdk" -import { useLocation } from "wouter" +import { useLocation } from "wouter-preact" export const Register = () => { const [flow, setFlow] = useState(null) diff --git a/examples/preact-spa/src/sdk.ts b/examples/preact-spa/src/sdk.ts index b04dec942..9608da182 100644 --- a/examples/preact-spa/src/sdk.ts +++ b/examples/preact-spa/src/sdk.ts @@ -5,7 +5,7 @@ import { FrontendApi, Configuration } from "@ory/client" import { AxiosError } from "axios" import { useCallback } from "preact/hooks" import { StateUpdater } from "preact/compat" -import { useLocation } from "wouter" +import { useLocation } from "wouter-preact" export const sdk = new FrontendApi( new Configuration({ diff --git a/examples/preact-spa/src/settings.tsx b/examples/preact-spa/src/settings.tsx index d2b23c96a..ecc1dbb51 100644 --- a/examples/preact-spa/src/settings.tsx +++ b/examples/preact-spa/src/settings.tsx @@ -6,7 +6,7 @@ import { } from "@ory/elements-preact" import { useCallback, useEffect, useState } from "preact/hooks" import { sdk, sdkError, getSearchParam } from "./sdk" -import { useLocation } from "wouter" +import { useLocation } from "wouter-preact" import { SettingsFlow, UpdateSettingsFlowBody } from "@ory/client" export const Settings = () => { diff --git a/examples/preact-spa/src/verification.tsx b/examples/preact-spa/src/verification.tsx index 0c03c13ed..3e57d259e 100644 --- a/examples/preact-spa/src/verification.tsx +++ b/examples/preact-spa/src/verification.tsx @@ -2,7 +2,7 @@ import { UpdateVerificationFlowBody, VerificationFlow } from "@ory/client" import { UserAuthCard } from "@ory/elements-preact" import { useCallback, useEffect, useState } from "preact/hooks" import { getSearchParam, sdk, sdkError } from "./sdk" -import { useLocation } from "wouter" +import { useLocation } from "wouter-preact" export const Verification = () => { const [flow, setFlow] = useState(null)