From 6fffcdeec6b8d373e91cfd7f18b065e7849c160f Mon Sep 17 00:00:00 2001 From: Mikkel Jakobsen Date: Fri, 22 Sep 2023 10:52:01 +0200 Subject: [PATCH] Use shelfmark type in SubjectNumber component Found the type in the generated code. When possible we should use the generated types because the prevent us from doing ts utility function voodoo. --- src/components/subject-number/SubjectNumber.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/subject-number/SubjectNumber.tsx b/src/components/subject-number/SubjectNumber.tsx index 44b6e90efb..db431ef8cf 100644 --- a/src/components/subject-number/SubjectNumber.tsx +++ b/src/components/subject-number/SubjectNumber.tsx @@ -1,10 +1,10 @@ import * as React from "react"; import { FC } from "react"; -import { Manifestation } from "../../core/utils/types/entities"; +import { Shelfmark } from "../../core/dbc-gateway/generated/graphql"; export interface SubjectNumberProps { className?: string; - shelfmark: NonNullable; + shelfmark: Shelfmark; } const SubjectNumber: FC = ({