Skip to content

Commit

Permalink
remove portal preview
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund committed Feb 28, 2025
1 parent 34c6b1d commit 9bb4a2d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { useRouter, useSearchParams } from 'next/navigation'
import { useContext, useMemo } from 'react'
import { useForm } from 'react-hook-form'
import { CheckoutCustomization } from './Checkout/CheckoutCustomization'
import { PortalCustomization } from './Portal/PortalCustomization'
import { StorefrontCustomization } from './Storefront/StorefrontCustomization'
import { StorefrontSidebar } from './Storefront/StorefrontSidebar'

Expand Down Expand Up @@ -51,8 +50,6 @@ const Customization = () => {
switch (customizationMode) {
case 'checkout':
return isLoading ? null : <CheckoutCustomization product={product} />
case 'portal':
return <PortalCustomization />
case 'storefront':
default:
return <StorefrontCustomization />
Expand Down Expand Up @@ -102,12 +99,6 @@ const Customization = () => {
>
Checkout
</TabsTrigger>
<TabsTrigger
className="data-[state=active]:bg-white data-[state=active]:shadow-sm"
value="portal"
>
Portal
</TabsTrigger>
</TabsList>
</Tabs>
<PublicProfileDropdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { usePathname, useRouter, useSearchParams } from 'next/navigation'
import React, { PropsWithChildren, useEffect } from 'react'

export type CustomizationContextMode = 'storefront' | 'checkout' | 'portal'
export type CustomizationContextMode = 'storefront' | 'checkout'

export type CustomizationContextValue = {
readonly customizationMode: CustomizationContextMode
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 9bb4a2d

Please sign in to comment.