diff --git a/clients/apps/web/src/components/Customization/Storefront/StorefrontSidebar.tsx b/clients/apps/web/src/components/Customization/Storefront/StorefrontSidebar.tsx index 0d7aaba325..f4e7ab225f 100644 --- a/clients/apps/web/src/components/Customization/Storefront/StorefrontSidebar.tsx +++ b/clients/apps/web/src/components/Customization/Storefront/StorefrontSidebar.tsx @@ -8,13 +8,13 @@ import { ErrorMessage } from '@hookform/error-message' import { AddPhotoAlternateOutlined } from '@mui/icons-material' import { FileServiceTypes, + Organization, OrganizationAvatarFileRead, OrganizationUpdate, ResponseError, ValidationError, } from '@polar-sh/sdk' import Link from 'next/link' -import { Pill } from 'polarkit/components/ui/atoms' import Avatar from 'polarkit/components/ui/atoms/avatar' import Button from 'polarkit/components/ui/atoms/button' import Input from 'polarkit/components/ui/atoms/input' @@ -48,18 +48,25 @@ const StorefrontSidebarContentWrapper = ({ title, enabled, children, + organization, }: PropsWithChildren<{ title: string enabled: boolean + organization: Organization }>) => { return ( - +

{title}

- - {enabled ? 'Enabled' : 'Disabled'} - + + {enabled && ( + + )}
{
@@ -337,28 +345,26 @@ export const StorefrontSidebar = () => { > Save - {organization.profile_settings?.enabled && ( - - )}
- -

- {storefrontEnabled ? 'Deactivate Storefront' : 'Activate Storefront'} -

-

- {storefrontEnabled - ? 'Disables the storefront and only allows checkouts via API and Checkout Links' - : 'Publish your very own Polar Storefront and drive traffic to your products'} -

+ +
+

+ {storefrontEnabled + ? 'Deactivate Storefront' + : 'Activate Storefront'} +

+

+ {storefrontEnabled + ? 'Disables the storefront and only allows checkouts via API and Checkout Links' + : 'Publish your very own Polar Storefront and drive traffic to your products'} +

+