名変更

This commit is contained in:
harukin-expo-dev-env 2024-05-21 10:25:10 +00:00
parent 9447678f85
commit 9df3d0c62a
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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: {