Browse Source

드론관제 아이콘 버그 수정

ctrlDraw
sanguu(박상현) 2 years ago
parent
commit
2e61e3342c
  1. 1
      src/modules/control/gp/sagas/controlGpSaga.ts
  2. 4
      src/views/control/main/ControlMain.js

1
src/modules/control/gp/sagas/controlGpSaga.ts

@ -150,6 +150,7 @@ function* controlDtlSaga(
yield put( yield put(
Actions.controlGpDtlAction.success({ Actions.controlGpDtlAction.success({
...data, ...data,
res,
items: res.response.body.items items: res.response.body.items
}) })
); );

4
src/views/control/main/ControlMain.js

@ -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} />;
} }

Loading…
Cancel
Save