From 536422a40c8f75d5d49c4222ed8cb465ce4135d9 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Wed, 9 Oct 2024 23:54:11 -0700 Subject: [PATCH] Include code snippets in the reference panel --- .../app/components/referencePanel/referencePanel.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/interface/web/app/components/referencePanel/referencePanel.tsx b/src/interface/web/app/components/referencePanel/referencePanel.tsx index 899f0b5b..785d05d8 100644 --- a/src/interface/web/app/components/referencePanel/referencePanel.tsx +++ b/src/interface/web/app/components/referencePanel/referencePanel.tsx @@ -455,6 +455,7 @@ export function TeaserReferencesSection(props: TeaserReferenceSectionProps) { )} @@ -465,6 +466,7 @@ export function TeaserReferencesSection(props: TeaserReferenceSectionProps) { interface ReferencePanelDataProps { notesReferenceCardData: NotesContextReferenceData[]; onlineReferenceCardData: OnlineReferenceData[]; + codeReferenceCardData: CodeReferenceData[]; } export default function ReferencePanel(props: ReferencePanelDataProps) { @@ -502,6 +504,15 @@ export default function ReferencePanel(props: ReferencePanelDataProps) { /> ); })} + {props.codeReferenceCardData.map((code, index) => { + return ( + + ); + })}