|
|
@ -120,9 +120,9 @@ const ControlMain = () => { |
|
|
|
let skyDetail = wheatherDetail[6].fcstValue; |
|
|
|
let skyDetail = wheatherDetail[6].fcstValue; |
|
|
|
if (skyDetail == 1 || skyDetail == 2 || skyDetail == 4) { |
|
|
|
if (skyDetail == 1 || skyDetail == 2 || skyDetail == 4) { |
|
|
|
return <CloudRain size={20} />; |
|
|
|
return <CloudRain size={20} />; |
|
|
|
} else if (skyDetail == 4) { |
|
|
|
} else if (skyDetail == 3) { |
|
|
|
return <CloudSnow size={20} />; |
|
|
|
return <CloudSnow size={20} />; |
|
|
|
} else if (skyDetail == 0 || wheatherDetail[5].fcstValue == 1) { |
|
|
|
} else if (wheatherDetail[5].fcstValue == 1) { |
|
|
|
return <Sun size={20} />; |
|
|
|
return <Sun size={20} />; |
|
|
|
} else return <Cloud size={20} />; |
|
|
|
} else return <Cloud size={20} />; |
|
|
|
} |
|
|
|
} |
|
|
|