From 7116a3b84d295dd1b3c80264d8c4391d5e05fd63 Mon Sep 17 00:00:00 2001 From: fsimonjetz Date: Tue, 20 Feb 2024 13:00:27 +0000 Subject: [PATCH] revert to original implementation --- src/fragmentarium/ui/info/Details.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 (