-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/harata ranking today #57
Conversation
status: 404, | ||
if (!scores[0]?.assignment){ | ||
return new Response(JSON.stringify({}), { | ||
status: 200, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
if (selectedTopic !== 0) { | ||
fetchData(getDate()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
トピックが0の時(今日のお題がない時)、ローディングが消えないので、対応お願いします
if (selectedTopic !== 0) { | |
fetchData(getDate()); | |
} | |
if (selectedTopic !== 0) { | |
fetchData(getDate()); | |
} | |
setIsLoading(false); |
if (!Array.isArray(data) || data.length === 0) { | ||
return ( | ||
<div | ||
className="flex items-center justify-center h-40 text-lg text-orange-500" | ||
> | ||
まだ投稿がありません!<br /> | ||
1位になれるかも! | ||
</div> | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cameraページへ遷移するボタンも置いておくのはどうでしょうか?
(文字サイズと間隔も調整してみました。)
if (!Array.isArray(data) || data.length === 0) { | |
return ( | |
<div | |
className="flex items-center justify-center h-40 text-lg text-orange-500" | |
> | |
まだ投稿がありません!<br /> | |
1位になれるかも! | |
</div> | |
); | |
} | |
if (!Array.isArray(data) || data.length === 0) { | |
return ( | |
<div className="flex flex-col items-center justify-center h-full text-lg text-gray-700 mt-[20vh]"> | |
<p className="text-2xl font-bold mb-4">まだ投稿がありません</p> | |
<p className="mb-4">今すぐ投稿して1位を目指しましょう!</p> | |
<p className="text-gray-800 mb-4"> | |
あなたの投稿がトップに表示されるかも! | |
</p> | |
<Button | |
variant="primary" | |
className="flex items-center justify-center w-3/5 bg-gray-800 hover:bg-gray-700 text-white py-6 space-x-2 mt-4" | |
onClick={() => router.push("/camera")} | |
> | |
<PhotoCameraIcon className="w-6 h-auto" /> | |
<span className="text-lg font-semibold">写真を撮る</span> | |
</Button> | |
</div> | |
); | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
概要
スコアがないお題
とスコアがあるお題
が存在する場合、スコアがないお題
にはスコアがあるお題
のランキングが表示されている変更内容
動作確認
関連するIssue
#123
備考