Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Nov 15, 2024
1 parent 343c015 commit bd2736f
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 430 deletions.
1 change: 1 addition & 0 deletions examples/nextjs-app-router/app/auth/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
// SPDX-License-Identifier: Apache-2.0

import { DefaultCardLayout } from "@ory/elements-react/theme"
import "@ory/elements-react/theme/styles.css"

export default DefaultCardLayout
4 changes: 2 additions & 2 deletions examples/nextjs-app-router/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// SPDX-License-Identifier: Apache-2.0

"use client"
import { useSession } from "@ory/nextjs/hooks"
import Link from "next/link"
import { useSession } from "@ory/elements-react/client"

export default function RootLayout() {
const session = useSession()
const { session } = useSession()
if (session) {
return "Hello: " + session.identity?.traits.email
}
Expand Down
4 changes: 2 additions & 2 deletions examples/nextjs-pages-router/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

import React from "react"
import Link from "next/link"
import { useSession } from "@ory/nextjs/hooks"
import { useSession } from "@ory/elements-react/client"

export default function Home() {
const session = useSession()
const { session } = useSession()
if (session) {
return "Hello: " + session.identity?.traits.email
}
Expand Down
Loading

0 comments on commit bd2736f

Please sign in to comment.