Skip to content

Commit

Permalink
fix(nextjs): Fix typings issue
Browse files Browse the repository at this point in the history
  • Loading branch information
anagstef committed Oct 24, 2023
1 parent 21fbeda commit 3d8b86a
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions packages/nextjs/src/app-beta/client/ui-components.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
'use client';
import { deprecated } from '@clerk/shared/deprecated';

deprecated(
'@clerk/nextjs/app-beta',
'Use imports from `@clerk/nextjs` instead.\nFor more details, consult the middleware documentation: https://clerk.com/docs/nextjs/middleware',
);

import {
CreateOrganization as _CreateOrganization,
OrganizationProfile as _OrganizationProfile,
Expand All @@ -15,6 +8,12 @@ import {
UserButton as _UserButton,
UserProfile as _UserProfile,
} from '@clerk/clerk-react';
import { deprecated } from '@clerk/shared/deprecated';

deprecated(
'@clerk/nextjs/app-beta',
'Use imports from `@clerk/nextjs` instead.\nFor more details, consult the middleware documentation: https://clerk.com/docs/nextjs/middleware',
);

/**
* @deprecated Use imports from `@clerk/nextjs` instead.
Expand All @@ -25,12 +24,12 @@ export const CreateOrganization = _CreateOrganization;
* @deprecated Use imports from `@clerk/nextjs` instead.
* For more details, consult the middleware documentation: https://clerk.com/docs/nextjs/middleware
*/
export const OrganizationProfile = _OrganizationProfile;
export const OrganizationProfile: typeof _OrganizationProfile = _OrganizationProfile;
/**
* @deprecated Use imports from `@clerk/nextjs` instead.
* For more details, consult the middleware documentation: https://clerk.com/docs/nextjs/middleware
*/
export const OrganizationSwitcher = _OrganizationSwitcher;
export const OrganizationSwitcher: typeof _OrganizationSwitcher = _OrganizationSwitcher;
/**
* @deprecated Use imports from `@clerk/nextjs` instead.
* For more details, consult the middleware documentation: https://clerk.com/docs/nextjs/middleware
Expand All @@ -45,9 +44,9 @@ export const SignUp = _SignUp;
* @deprecated Use imports from `@clerk/nextjs` instead.
* For more details, consult the middleware documentation: https://clerk.com/docs/nextjs/middleware
*/
export const UserButton = _UserButton;
export const UserButton: typeof _UserButton = _UserButton;
/**
* @deprecated Use imports from `@clerk/nextjs` instead.
* For more details, consult the middleware documentation: https://clerk.com/docs/nextjs/middleware
*/
export const UserProfile = _UserProfile;
export const UserProfile: typeof _UserProfile = _UserProfile;

0 comments on commit 3d8b86a

Please sign in to comment.