|
1 | | -import { Fragment, useEffect, useMemo, useState } from "react"; |
| 1 | +import { useEffect, useMemo, useState } from "react"; |
2 | 2 |
|
3 | 3 | import { TimelineChartZoomOption } from "@/types/charts"; |
4 | 4 | import { PostWithForecasts } from "@/types/post"; |
@@ -70,24 +70,22 @@ const EmbedQuestionCard: React.FC<Props> = ({ |
70 | 70 |
|
71 | 71 | return ( |
72 | 72 | <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} /> |
91 | 89 | </QuestionViewModeProvider> |
92 | 90 | ); |
93 | 91 | }; |
|
0 commit comments