Skip to content

Commit

Permalink
Simplify accreditation structure (#2413)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAurelius authored Jan 21, 2025
1 parent c220385 commit fe2061e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 43 deletions.
36 changes: 0 additions & 36 deletions carbon-projects/schemas/accreditation.ts

This file was deleted.

7 changes: 1 addition & 6 deletions carbon-projects/schemas/assessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ export default defineType({
type: "array",
title: "Accreditations",
name: "accreditations",
of: [
{
type: "reference",
to: [{ type: "accreditation" }],
},
],
of: [{ type: "accreditation" }],
},
],
});
2 changes: 1 addition & 1 deletion carbon-projects/schemas/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import accreditation from "./accreditation";
import assessor from "./assessor";
import country from "./country";
import developer from "./developer";
import indexContent from "./indexContent";
import methodology from "./methodology";
import accreditation from "./objects/accreditation";
import captionImage from "./objects/captionImage";
import externalFile from "./objects/externalFile";
import hostedFile from "./objects/hostedFile";
Expand Down
10 changes: 10 additions & 0 deletions carbon-projects/schemas/objects/accreditation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineType } from "sanity";

export default defineType({
name: "accreditation",
type: "object",
fields: [
{ type: "string", name: "name" },
{ type: "string", name: "link" },
],
});

0 comments on commit fe2061e

Please sign in to comment.