Skip to content

Commit

Permalink
Merge pull request #318 from w3bdesign/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
w3bdesign authored Aug 31, 2024
2 parents 2b006f1 + 1f842c8 commit 892d74c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion studio/schemaTypes/documents/page.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import {Browsers} from 'phosphor-react'
import {Browsers} from "@phosphor-icons/react";

const page = {
// This is the display name for the type
Expand Down
19 changes: 10 additions & 9 deletions studio/schemaTypes/objects/pagecontent.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// @ts-ignore
import { Article } from "phosphor-react";
import { Article } from "@phosphor-icons/react";
import { defineField, defineType } from 'sanity'

const pagecontent = {
const pagecontent = defineType({
// This is the display name for the type
title: "Page content",

Expand All @@ -16,23 +17,23 @@ const pagecontent = {

// Now we proceed to list the fields of our document
fields: [
{
defineField({
title: "Id",
name: "id",
type: "number"
},
{
}),
defineField({
title: "Title",
name: "title",
type: "string"
},
{
}),
defineField({
title: "Text",
name: "text",
type: "array",
of: [{ type: "block" }]
}
})
]
};
});

export default pagecontent;

0 comments on commit 892d74c

Please sign in to comment.