0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-12-22 20:20:09 +09:00

Update return format

This commit is contained in:
yude 2021-09-24 17:25:26 +09:00
parent 971be8ab25
commit c957d791a6
Signed by: yude
GPG Key ID: EB0FE5D925C4A968
3 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ function App (){
const yes_playing = t('yes_playing', {playing: data.members[0].game.name})
return <p>{yes_playing}</p>
}else{
return <p></p>
return <></>
}
}
};

View File

@ -16,9 +16,9 @@ function App (props) {
}, []);
if (data === undefined){
console.log("[Minecraft: UUID to player's name] データの取得に失敗しました。 / Failed to retrieve data.")
return <span></span>
return <></>
}else {
return <span>{data.username}</span>
return <>{data.username}</>
};
}

View File

@ -25,7 +25,7 @@ function App () {
const status = data.artist + ' / ' + data.title
return <p>{t('listening', {listening: status})}</p>
}else{
return <p></p>
return <></>
}
};
}