Skip to content

Commit

Permalink
clients/contextview: fix container bug
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund committed Nov 6, 2024
1 parent 74b9973 commit 6656d34
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions clients/apps/web/src/components/Products/EditProductPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,20 +200,18 @@ export const EditProductPage = ({
/>
</div>

<div className="dark:border-polar-700 flex flex-row items-center gap-x-4 border-t border-gray-200 p-8">
{organization.profile_settings?.enabled ? (
<div className="dark:border-polar-700 flex flex-row items-center gap-x-4 border-t border-gray-200 p-8">
<Link
href={`/${organization.slug}/products/${product.id}`}
target="_blank"
>
<Button>View Product Page</Button>
</Link>
</div>
) : (
<Button onClick={showCheckoutModal}>Share</Button>
)}
</div>
{organization.profile_settings?.enabled ? (
<div className="dark:border-polar-700 flex flex-row items-center gap-x-4 border-t border-gray-200 p-8">
<Link
href={`/${organization.slug}/products/${product.id}`}
target="_blank"
>
<Button>View Product Page</Button>
</Link>
</div>
) : (
<Button onClick={showCheckoutModal}>Share</Button>
)}
<InlineModal
isShown={isCheckoutModalShown}
hide={hideCheckoutModal}
Expand Down

0 comments on commit 6656d34

Please sign in to comment.