Skip to content

Commit

Permalink
Rename OpenSharedButton with OpenSharedLink in blog schema
Browse files Browse the repository at this point in the history
  • Loading branch information
anemne committed Aug 28, 2024
1 parent ac0ce1f commit 2930eb2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
9 changes: 0 additions & 9 deletions studio/components/OpenSharedButton.tsx

This file was deleted.

9 changes: 9 additions & 0 deletions studio/components/OpenSharedLink.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Link from "next/link";

export const OpenSharedLink = () => {
return (
<Link href="http://localhost:3000/shared">
<span>Go to shared</span>
</Link>
);
};
6 changes: 3 additions & 3 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 { OpenSharedLink } from "studio/components/OpenSharedLink";

export const blogId = "blog";

Expand Down Expand Up @@ -60,9 +60,9 @@ const blog = defineType({
title: "Go To Shared Content",
description:
"To create and edit blog posts, go to the shared Sanity project",
type: "string",
type: "link",
components: {
input: OpenSharedButton,
input: OpenSharedLink,
},
}),
],
Expand Down

0 comments on commit 2930eb2

Please sign in to comment.