Skip to content

Commit

Permalink
Use shelfmark type in SubjectNumber component
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
spaceo committed Sep 22, 2023
1 parent e424d34 commit 6fffcde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/subject-number/SubjectNumber.tsx
Original file line number Diff line number Diff line change
@@ -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<Manifestation["shelfmark"]>;
shelfmark: Shelfmark;
}

const SubjectNumber: FC<SubjectNumberProps> = ({
Expand Down

0 comments on commit 6fffcde

Please sign in to comment.