diff --git a/src/components/Archive/Archive.tsx b/src/components/Archive/Archive.tsx index a91cdd35..525cb76a 100644 --- a/src/components/Archive/Archive.tsx +++ b/src/components/Archive/Archive.tsx @@ -20,12 +20,11 @@ type MyEvent = Omit & { } const PublicationButton: FC<{ - publicationId: number - publicationName: string -}> = ({publicationId, publicationName}) => { + publication: Publication +}> = ({publication}) => { return ( - - Časopis {publicationName} + + {publication.name} ) } @@ -79,11 +78,7 @@ export const Archive: FC = () => { {event.publication_set.map((publication) => ( - + ))} diff --git a/src/components/PublicationUploader/PublicationUploader.tsx b/src/components/PublicationUploader/PublicationUploader.tsx index 93338c3c..26f6d575 100644 --- a/src/components/PublicationUploader/PublicationUploader.tsx +++ b/src/components/PublicationUploader/PublicationUploader.tsx @@ -32,7 +32,7 @@ export const PublicationUploader: FC = ({semesterId, o {order}. Časopis: {publication && ( - + {publication.name} )}