Skip to content

Commit

Permalink
Merge branch 'main' into codemod-props
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh authored May 3, 2023
2 parents f3ba2bd + 9c0174e commit 9f8c883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aksel.nav.no/website/pages/god-praksis/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { contributorsSingle, destructureBlocks } from "@/sanity/queries";

type PageProps = NextPageT<{
tema: Omit<AkselTemaT, "ansvarlig"> & {
ansvarlig: { title: string; roller: string[] };
ansvarlig?: { title: string; roller: string[] };
};
}>;

Expand Down Expand Up @@ -169,7 +169,7 @@ const Page = ({ tema: page }: PageProps["props"]) => {
)}
aria-hidden={!hasAnsvarlig}
>
<Detail as="div" size="small" className="mb-2" uppercase>
<Detail as="div" className="mb-2" uppercase>
Ansvarlig for tema
</Detail>
<div className="grid">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export const Tema = defineType({
name: "ansvarlig",
type: "reference",
to: [{ type: "editor" }],
validation: (Rule) => Rule.required(),
group: "innhold",
}),
defineField({
Expand Down

0 comments on commit 9f8c883

Please sign in to comment.