diff --git a/src/fragmentarium/ui/info/Details.tsx b/src/fragmentarium/ui/info/Details.tsx index ddf270b55..98f8721a2 100644 --- a/src/fragmentarium/ui/info/Details.tsx +++ b/src/fragmentarium/ui/info/Details.tsx @@ -1,5 +1,4 @@ import React from 'react' -import { Museums, MuseumKey } from 'fragmentarium/domain/museum' import _ from 'lodash' import { Fragment, Script } from 'fragmentarium/domain/fragment' import FragmentLink from 'fragmentarium/ui/FragmentLink' @@ -22,12 +21,7 @@ function Collection({ fragment: { collection } }: Props): JSX.Element { return <>{collection && `(${collection} Collection)`} } -interface MuseumNameProps { - museumKey: MuseumKey -} - -const MuseumName: React.FC = ({ museumKey }) => { - const museum = Museums[museumKey] +function MuseumName({ fragment: { museum } }: Props): JSX.Element { return museum.url ? ( {museum.name} ) : ( @@ -128,7 +122,7 @@ function Details({ return (