From 58dcc277042d12355e0d4d6b868dddb649fb6516 Mon Sep 17 00:00:00 2001 From: harukin-expo-dev-env Date: Fri, 24 May 2024 03:11:26 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=A6=E3=82=A3=E3=82=B8=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=88=E3=81=AE=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AndroidWidget/InfoWidget.jsx | 16 +++++++--------- components/AndroidWidget/widget-task-handler.jsx | 4 +++- components/Settings/WidgetSettings.js | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/components/AndroidWidget/InfoWidget.jsx b/components/AndroidWidget/InfoWidget.jsx index f70c8cc..db3a556 100644 --- a/components/AndroidWidget/InfoWidget.jsx +++ b/components/AndroidWidget/InfoWidget.jsx @@ -81,17 +81,15 @@ export function InfoWidget({ time, text }) { }} > {text ? ( - - - + clickAction="OPEN_APP" + text={text} + /> ) : ( ); + renderWidget( + + ); break; } case "JR_shikoku_train_info": diff --git a/components/Settings/WidgetSettings.js b/components/Settings/WidgetSettings.js index c4fb501..b58e4c5 100644 --- a/components/Settings/WidgetSettings.js +++ b/components/Settings/WidgetSettings.js @@ -34,7 +34,7 @@ export const WidgetSettings = ({ navigate }) => { }); getInfoString().then(({ time, text }) => { setTime(time); - setTrainInfo(text); + setTrainInfo(text.toString()); }); }, []); return (