Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Commit a877a53

Browse files
Moving code around some more
1 parent ef57823 commit a877a53

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

frontend/src/components/Answer/Answer.tsx

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -299,24 +299,23 @@ export const Answer = ({ answer, onCitationClicked, onExectResultClicked, onFoll
299299
<Stack.Item grow>
300300
<Plot data={parsedAnswer.plotly_data.data} layout={parsedAnswer.plotly_data.layout} />
301301
</Stack.Item>
302-
302+
{!!followupQuestions?.length && showFollowupQuestions && onFollowupQuestionClicked && (
303+
<Stack.Item>
304+
<Stack horizontal wrap className={`${!!parsedAnswer.citations.length ? styles.followupQuestionsList : ""}`} tokens={{ childrenGap: 6 }}>
305+
<span className={styles.followupQuestionLearnMore}>Follow-up questions:</span>
306+
{followupQuestions.map((x, i) => {
307+
return (
308+
<a key={i} className={styles.followupQuestion} title={x} onClick={() => onFollowupQuestionClicked(x)}>
309+
{`${x}`}
310+
</a>
311+
);
312+
})}
313+
</Stack>
314+
</Stack.Item>
315+
)}
303316
</Stack>
304317
)}
305318
<Stack horizontal className={styles.answerFooter}>
306-
{!!followupQuestions?.length && showFollowupQuestions && onFollowupQuestionClicked && (
307-
<Stack.Item>
308-
<Stack horizontal wrap className={`${!!parsedAnswer.citations.length ? styles.followupQuestionsList : ""}`} tokens={{ childrenGap: 6 }}>
309-
<span className={styles.followupQuestionLearnMore}>Follow-up questions:</span>
310-
{followupQuestions.map((x, i) => {
311-
return (
312-
<a key={i} className={styles.followupQuestion} title={x} onClick={() => onFollowupQuestionClicked(x)}>
313-
{`${x}`}
314-
</a>
315-
);
316-
})}
317-
</Stack>
318-
</Stack.Item>
319-
)}
320319
{!!parsedAnswer.citations.length && (
321320
<Stack.Item onKeyDown={e => (e.key === 'Enter' || e.key === ' ' ? toggleIsRefAccordionOpen() : null)}>
322321
<Stack style={{ width: '100%' }}>

0 commit comments

Comments
 (0)