From 4c67b2b68be8d31ef7a34757fd173ca6157387a2 Mon Sep 17 00:00:00 2001 From: Markus Thielker Date: Mon, 2 Dec 2024 00:42:47 +0100 Subject: [PATCH] NORY-14: refactor imports --- authentication/src/app/flow/error/page.tsx | 2 +- authentication/src/app/flow/login/page.tsx | 3 +-- authentication/src/app/flow/recovery/page.tsx | 3 +-- authentication/src/app/flow/registration/page.tsx | 3 +-- authentication/src/app/flow/verification/page.tsx | 3 +-- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/authentication/src/app/flow/error/page.tsx b/authentication/src/app/flow/error/page.tsx index 4f83931..e35626f 100644 --- a/authentication/src/app/flow/error/page.tsx +++ b/authentication/src/app/flow/error/page.tsx @@ -4,7 +4,7 @@ import React, { useEffect, useState } from 'react'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { FlowError } from '@ory/client'; import { AxiosError } from 'axios'; -import { kratos } from '../../../ory/sdk/client'; +import { kratos } from '@/ory'; import { useRouter, useSearchParams } from 'next/navigation'; import Link from 'next/link'; import { Button } from '@/components/ui/button'; diff --git a/authentication/src/app/flow/login/page.tsx b/authentication/src/app/flow/login/page.tsx index 03a5f38..6d08e30 100644 --- a/authentication/src/app/flow/login/page.tsx +++ b/authentication/src/app/flow/login/page.tsx @@ -2,10 +2,9 @@ import React, { useCallback, useEffect, useState } from 'react'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; -import { Flow, HandleError, LogoutLink } from '@/ory'; +import { Flow, HandleError, kratos, LogoutLink } from '@/ory'; import Link from 'next/link'; import { LoginFlow, UpdateLoginFlowBody } from '@ory/client'; -import { kratos } from '../../../ory/sdk/client'; import { Button } from '@/components/ui/button'; import { useRouter, useSearchParams } from 'next/navigation'; import Image from 'next/image'; diff --git a/authentication/src/app/flow/recovery/page.tsx b/authentication/src/app/flow/recovery/page.tsx index 46fe974..7d699be 100644 --- a/authentication/src/app/flow/recovery/page.tsx +++ b/authentication/src/app/flow/recovery/page.tsx @@ -2,10 +2,9 @@ import React, { useCallback, useEffect, useState } from 'react'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; -import { Flow, HandleError } from '@/ory'; +import { Flow, HandleError, kratos } from '@/ory'; import { RecoveryFlow, UpdateRecoveryFlowBody } from '@ory/client'; import { AxiosError } from 'axios'; -import { kratos } from '../../../ory/sdk/client'; import { useRouter, useSearchParams } from 'next/navigation'; import Link from 'next/link'; import { Button } from '@/components/ui/button'; diff --git a/authentication/src/app/flow/registration/page.tsx b/authentication/src/app/flow/registration/page.tsx index 9cddc42..7a26aca 100644 --- a/authentication/src/app/flow/registration/page.tsx +++ b/authentication/src/app/flow/registration/page.tsx @@ -2,11 +2,10 @@ import React, { useCallback, useEffect, useState } from 'react'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; -import { Flow, HandleError } from '@/ory'; +import { Flow, HandleError, kratos } from '@/ory'; import Link from 'next/link'; import { RegistrationFlow, UpdateRegistrationFlowBody } from '@ory/client'; import { AxiosError } from 'axios'; -import { kratos } from '../../../ory/sdk/client'; import { useRouter, useSearchParams } from 'next/navigation'; import { Button } from '@/components/ui/button'; import { Skeleton } from '@/components/ui/skeleton'; diff --git a/authentication/src/app/flow/verification/page.tsx b/authentication/src/app/flow/verification/page.tsx index 72e079b..ac18b79 100644 --- a/authentication/src/app/flow/verification/page.tsx +++ b/authentication/src/app/flow/verification/page.tsx @@ -2,10 +2,9 @@ import React, { useCallback, useEffect, useState } from 'react'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; -import { Flow, HandleError } from '@/ory'; +import { Flow, HandleError, kratos } from '@/ory'; import { UpdateVerificationFlowBody, VerificationFlow } from '@ory/client'; import { AxiosError } from 'axios'; -import { kratos } from '../../../ory/sdk/client'; import { useRouter, useSearchParams } from 'next/navigation'; import Link from 'next/link'; import { Button } from '@/components/ui/button';