Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl committed Mar 6, 2024
1 parent 6b99edf commit f140cc8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/preact-spa/src/app.tsx
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
2 changes: 1 addition & 1 deletion examples/preact-spa/src/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<LoginFlow | null>(null)
Expand Down
2 changes: 1 addition & 1 deletion examples/preact-spa/src/recovery.tsx
Original file line number Diff line number Diff line change
@@ -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 = () => {
Expand Down
2 changes: 1 addition & 1 deletion examples/preact-spa/src/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<RegistrationFlow | null>(null)
Expand Down
2 changes: 1 addition & 1 deletion examples/preact-spa/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion examples/preact-spa/src/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down
2 changes: 1 addition & 1 deletion examples/preact-spa/src/verification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<VerificationFlow | null>(null)
Expand Down

0 comments on commit f140cc8

Please sign in to comment.