fixed click through on research cards
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from "react";
|
||||||
import { useCitations } from '@/components/context-citation';
|
import { useCitations } from "@/components/context-citation";
|
||||||
import { PublicationCard } from './publication-card';
|
import { PublicationCard } from "./publication-card";
|
||||||
import { BookOpen } from 'lucide-react';
|
import { BookOpen } from "lucide-react";
|
||||||
|
|
||||||
export function ReferencesContainer() {
|
export function ReferencesContainer() {
|
||||||
const { citedKeys, getPublicationByKey } = useCitations();
|
const { citedKeys, getPublicationByKey } = useCitations();
|
||||||
@@ -26,7 +26,7 @@ export function ReferencesContainer() {
|
|||||||
References
|
References
|
||||||
</h2>
|
</h2>
|
||||||
<div className="not-prose space-y-4">
|
<div className="not-prose space-y-4">
|
||||||
{sortedKeys.map(key => {
|
{sortedKeys.map((key) => {
|
||||||
const pub = getPublicationByKey(key);
|
const pub = getPublicationByKey(key);
|
||||||
if (!pub) return null;
|
if (!pub) return null;
|
||||||
return (
|
return (
|
||||||
@@ -37,6 +37,7 @@ export function ReferencesContainer() {
|
|||||||
authors={pub.authors}
|
authors={pub.authors}
|
||||||
journal={pub.journal}
|
journal={pub.journal}
|
||||||
year={pub.year}
|
year={pub.year}
|
||||||
|
url={pub.url}
|
||||||
pdfUrl={pub.pdfUrl}
|
pdfUrl={pub.pdfUrl}
|
||||||
bibtex={pub.bibtex}
|
bibtex={pub.bibtex}
|
||||||
pdfAvailable={pub.pdfAvailable}
|
pdfAvailable={pub.pdfAvailable}
|
||||||
@@ -47,4 +48,4 @@ export function ReferencesContainer() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user