名変更
This commit is contained in:
parent
9447678f85
commit
9df3d0c62a
@ -5,7 +5,7 @@ import {
|
||||
ListWidget,
|
||||
} from "react-native-android-widget";
|
||||
|
||||
export function InfoWidget({ time, delayString }) {
|
||||
export function InfoWidget({ time, text }) {
|
||||
return (
|
||||
<FlexWidget
|
||||
style={{
|
||||
@ -61,7 +61,7 @@ export function InfoWidget({ time, delayString }) {
|
||||
padding: 10,
|
||||
}}
|
||||
>
|
||||
{delayString ? (
|
||||
{text ? (
|
||||
<FlexWidget
|
||||
style={{
|
||||
flexDirection: "row",
|
||||
@ -71,7 +71,7 @@ export function InfoWidget({ time, delayString }) {
|
||||
}}
|
||||
clickAction="WIDGET_CLICK"
|
||||
>
|
||||
<FlexText flex={3} text={delayString} />
|
||||
<FlexText flex={3} text={text} />
|
||||
</FlexWidget>
|
||||
) : (
|
||||
<TextWidget
|
||||
|
@ -74,7 +74,7 @@ export async function widgetTaskHandler(props) {
|
||||
}
|
||||
case "Info_Widget": {
|
||||
const { time, text } = await getInfoString();
|
||||
renderWidget(<InfoWidget time={time} delayString={text} />);
|
||||
renderWidget(<InfoWidget time={time} text={text} />);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
Loading…
Reference in New Issue
Block a user