Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(unlock-app): Fix next/navigation migration #14823

Merged
merged 4 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button } from '@unlock-protocol/ui'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useRouter } from 'next/navigation'
import { FiExternalLink as ExternalLinkIcon } from 'react-icons/fi'

import {
Expand Down
8 changes: 4 additions & 4 deletions unlock-app/src/components/interface/checkout/Container.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { NextSeo } from 'next-seo'
import { useRouter } from 'next/router'
import React, { ReactNode } from 'react'
import { useSearchParams } from 'next/navigation'
import { ReactNode } from 'react'
import { config } from '~/config/app'

interface Props {
children?: ReactNode
}

export function Container({ children }: Props) {
const { query } = useRouter()
const id = query.id
const searchParams = useSearchParams()
const id = searchParams.get('id')

return (
<>
Expand Down
Loading