From a52500d2893ce62a2489a7c8d843516a2de697ee Mon Sep 17 00:00:00 2001 From: Debanjum Date: Mon, 11 Nov 2024 17:30:06 -0800 Subject: [PATCH] Show generated code artifacts before notes and online references --- .../referencePanel/referencePanel.tsx | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/interface/web/app/components/referencePanel/referencePanel.tsx b/src/interface/web/app/components/referencePanel/referencePanel.tsx index 2f7650b3..e8942bb4 100644 --- a/src/interface/web/app/components/referencePanel/referencePanel.tsx +++ b/src/interface/web/app/components/referencePanel/referencePanel.tsx @@ -488,10 +488,10 @@ export function TeaserReferencesSection(props: TeaserReferenceSectionProps) { setNumTeaserSlots(props.isMobileWidth ? 1 : 3); }, [props.isMobileWidth]); - const notesDataToShow = props.notesReferenceCardData.slice(0, numTeaserSlots); - const codeDataToShow = props.codeReferenceCardData.slice( + const codeDataToShow = props.codeReferenceCardData.slice(0, numTeaserSlots); + const notesDataToShow = props.notesReferenceCardData.slice( 0, - numTeaserSlots - notesDataToShow.length, + numTeaserSlots - codeDataToShow.length, ); const onlineDataToShow = notesDataToShow.length + codeDataToShow.length < numTeaserSlots @@ -522,15 +522,6 @@ export function TeaserReferencesSection(props: TeaserReferenceSectionProps) {

{numReferences} sources

- {notesDataToShow.map((note, index) => { - return ( - - ); - })} {codeDataToShow.map((code, index) => { return ( ); })} + {notesDataToShow.map((note, index) => { + return ( + + ); + })} {onlineDataToShow.map((online, index) => { return ( View all references for this response
- {props.notesReferenceCardData.map((note, index) => { - return ( - - ); - })} {props.codeReferenceCardData.map((code, index) => { return ( ); })} + {props.notesReferenceCardData.map((note, index) => { + return ( + + ); + })} {props.onlineReferenceCardData.map((online, index) => { return (