Skip to content

Commit

Permalink
Prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anemne committed Aug 28, 2024
1 parent 158b458 commit 85afcf6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
12 changes: 5 additions & 7 deletions studio/components/OpenSharedButton.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { Button } from "@sanity/ui";

export const OpenSharedButton = () => {
const handleClick = () => {
window.open("http://localhost:3000/shared", "_blank");
};
const handleClick = () => {
window.open("http://localhost:3000/shared", "_blank");
};

return (
<Button text="Open shared studio" onClick={handleClick} />
);
};
return <Button text="Open shared studio" onClick={handleClick} />;
};
12 changes: 6 additions & 6 deletions studio/schemas/documents/blog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineField, defineType } from "sanity";
import seo from "../objects/seo";
import { pageSlug } from "../schemaTypes/slug";
import { title } from "../fields/text";
import { OpenSharedButton} from "studio/components/OpenSharedButton";
import { OpenSharedButton } from "studio/components/OpenSharedButton";

export const blogId = "blog";

Expand Down Expand Up @@ -60,11 +60,11 @@ const blog = defineType({
title: "Go To Shared Content",
description:
"If you're interested in creating content that is shared across all domains, please add it to the shared Sanity project.",
type: "string",
components: {
input: OpenSharedButton,
},
}),
type: "string",
components: {
input: OpenSharedButton,
},
}),
],
preview: {
select: {
Expand Down

0 comments on commit 85afcf6

Please sign in to comment.