Skip to content

Commit f51c4c5

Browse files
committed
feat: pr review udpates
1 parent 95cdd68 commit f51c4c5

File tree

2 files changed

+17
-21
lines changed

2 files changed

+17
-21
lines changed

front_end/src/app/(embed)/questions/components/embed_question_card.tsx

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Fragment, useEffect, useMemo, useState } from "react";
1+
import { useEffect, useMemo, useState } from "react";
22

33
import { TimelineChartZoomOption } from "@/types/charts";
44
import { PostWithForecasts } from "@/types/post";
@@ -70,24 +70,22 @@ const EmbedQuestionCard: React.FC<Props> = ({
7070

7171
return (
7272
<QuestionViewModeProvider mode="embed">
73-
<Fragment>
74-
<EmbedQuestionHeader
75-
post={post}
76-
onHeightChange={setHeaderHeight}
77-
titleStyle={theme?.title}
78-
titleOverride={titleOverride}
79-
theme={theme}
80-
/>
81-
<EmbedQuestionPlot
82-
post={post}
83-
chartHeight={chartHeight}
84-
onLegendHeightChange={setLegendHeight}
85-
theme={theme}
86-
defaultZoom={defaultZoom}
87-
withZoomPicker={withZoomPicker}
88-
/>
89-
<EmbedQuestionFooter ogReady={ogReady} post={post} />
90-
</Fragment>
73+
<EmbedQuestionHeader
74+
post={post}
75+
onHeightChange={setHeaderHeight}
76+
titleStyle={theme?.title}
77+
titleOverride={titleOverride}
78+
theme={theme}
79+
/>
80+
<EmbedQuestionPlot
81+
post={post}
82+
chartHeight={chartHeight}
83+
onLegendHeightChange={setLegendHeight}
84+
theme={theme}
85+
defaultZoom={defaultZoom}
86+
withZoomPicker={withZoomPicker}
87+
/>
88+
<EmbedQuestionFooter ogReady={ogReady} post={post} />
9189
</QuestionViewModeProvider>
9290
);
9391
};

front_end/src/app/(embed)/questions/components/embed_question_footer.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"use client";
2-
31
import Image from "next/image";
42
import React from "react";
53

0 commit comments

Comments
 (0)