소스 검색

Fix tipos

wilitp 4 년 전
부모
커밋
3b0b009818
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      app/src/components/data/DegreeDay/index.tsx
  2. 1 1
      app/src/components/data/Precipitation/index.tsx

+ 1 - 1
app/src/components/data/DegreeDay/index.tsx

@@ -12,7 +12,7 @@ const colorScale = greenScale([0, 60]);
 const ResultTd = ({ value }: any) => (
   <td
     className={classes.cell}
-    style={{ backgroundColor: colorScale(value).css() as any }}
+    style={{ backgroundColor: (colorScale(value) as any).css() as any }}
   >
     {value ?? "-"}
   </td>

+ 1 - 1
app/src/components/data/Precipitation/index.tsx

@@ -13,7 +13,7 @@ const colorScale = blueScale([0, 300]);
 const ResultTd = ({ value }: any) => (
   <td
     className={classes.cell}
-    style={{ backgroundColor: colorScale(value).css() as any }}
+    style={{ backgroundColor: (colorScale(value) as any).css() as any }}
   >
     {value ?? "-"}
   </td>