From 158b4582dd02c90f12c796f465ebaa71e69c593c Mon Sep 17 00:00:00 2001 From: Ane Date: Tue, 27 Aug 2024 16:24:24 +0200 Subject: [PATCH] Add OpenSharedButton component for opening shared studio --- studio/components/OpenSharedButton.tsx | 11 +++++++++++ studio/schemas/deskStructure.ts | 1 - studio/schemas/documents/blog.ts | 11 +++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 studio/components/OpenSharedButton.tsx diff --git a/studio/components/OpenSharedButton.tsx b/studio/components/OpenSharedButton.tsx new file mode 100644 index 000000000..6571b655a --- /dev/null +++ b/studio/components/OpenSharedButton.tsx @@ -0,0 +1,11 @@ +import { Button } from "@sanity/ui"; + +export const OpenSharedButton = () => { + const handleClick = () => { + window.open("http://localhost:3000/shared", "_blank"); + }; + + return ( +