+ Indicator + | ++ Value + | +
---|
{title}
+
+
+
-
-
-
- Question description
-
-
- {question.description.replaceAll("---", "")}
-
-
-
- Indicators
-
-
-
-
-
-
- Indicator
-
-
- Value
-
-
-
-
-
-
- Stars
-
-
-
-
-
-
-
- Platform
-
- {question.platform.label}
-
- {question.qualityIndicators.numForecasts ? (
-
-
- Number of forecasts
-
-
- {question.qualityIndicators.numForecasts}
-
-
- ) : null}
- {Object.keys(question.qualityIndicators)
- .filter(
- (indicator) =>
- question.qualityIndicators[indicator] != null &&
- !!qualityIndicatorLabels[indicator]
- )
- .map((indicator: UsedIndicatorName) => {
- return (
-
-
- {qualityIndicatorLabels[indicator]}
-
-
- {formatIndicatorValue(
- question.qualityIndicators[indicator],
- indicator,
- question.platform.id
- )}
-
-
- );
- })}
-
-
+
+
+
+
+
+ {question.description.replaceAll("---", "")}
+
+
+
+
+
+
);
const QuestionPage: NextPage = ({ id }) => {
return (
-
+
{({ data }) => (
-
+
-
- Question description -
-- Indicators -
-- Indicator - | -- Value - | -
---|---|
- Stars - | -
- |
-
- Platform - | -{question.platform.label} | -
- Number of forecasts - | -- {question.qualityIndicators.numForecasts} - | -
- {qualityIndicatorLabels[indicator]} - | -- {formatIndicatorValue( - question.qualityIndicators[indicator], - indicator, - question.platform.id - )} - | -