|
|
@@ -11,11 +11,13 @@ import {
|
|
|
|
|
|
interface tableHeaderProps {
|
|
|
//Change this name
|
|
|
- daysToMatchCurrentTemperature: boolean;
|
|
|
+ daysToMatchCurrentTemperature?: boolean;
|
|
|
+ averageAccumulated?: boolean;
|
|
|
}
|
|
|
|
|
|
export const TableHeader: FC<tableHeaderProps> = ({
|
|
|
- daysToMatchCurrentTemperature,
|
|
|
+ daysToMatchCurrentTemperature = false,
|
|
|
+ averageAccumulated = false,
|
|
|
}) => {
|
|
|
return (
|
|
|
<thead style={{ minHeight: "90px" }}>
|
|
|
@@ -62,6 +64,10 @@ export const TableHeader: FC<tableHeaderProps> = ({
|
|
|
Grados días acumulados
|
|
|
</td>
|
|
|
|
|
|
+ {averageAccumulated && (
|
|
|
+ <td className={classes.cell}>Grados dias promedio</td>
|
|
|
+ )}
|
|
|
+
|
|
|
{daysToMatchCurrentTemperature && (
|
|
|
<td className={classes.cell}>Días para igualar temporada actual</td>
|
|
|
)}
|