名変更

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, ListWidget,
} from "react-native-android-widget"; } from "react-native-android-widget";
export function InfoWidget({ time, delayString }) { export function InfoWidget({ time, text }) {
return ( return (
<FlexWidget <FlexWidget
style={{ style={{
@ -61,7 +61,7 @@ export function InfoWidget({ time, delayString }) {
padding: 10, padding: 10,
}} }}
> >
{delayString ? ( {text ? (
<FlexWidget <FlexWidget
style={{ style={{
flexDirection: "row", flexDirection: "row",
@ -71,7 +71,7 @@ export function InfoWidget({ time, delayString }) {
}} }}
clickAction="WIDGET_CLICK" clickAction="WIDGET_CLICK"
> >
<FlexText flex={3} text={delayString} /> <FlexText flex={3} text={text} />
</FlexWidget> </FlexWidget>
) : ( ) : (
<TextWidget <TextWidget

View File

@ -74,7 +74,7 @@ export async function widgetTaskHandler(props) {
} }
case "Info_Widget": { case "Info_Widget": {
const { time, text } = await getInfoString(); const { time, text } = await getInfoString();
renderWidget(<InfoWidget time={time} delayString={text} />); renderWidget(<InfoWidget time={time} text={text} />);
break; break;
} }
default: { default: {