chore: add senja to dashboard login + validate empty newsfeed comment

This commit is contained in:
Rotimi Best
2024-03-21 04:32:15 +01:00
parent 62a32a6204
commit 5a566cbb4f
4 changed files with 19 additions and 0 deletions
@@ -55,6 +55,8 @@
};
const handleAddNewComment = (event) => {
if (!comment) return;
if (event.key === 'Enter' || event.type === 'click') {
event.preventDefault();
addNewComment(comment, feed.id, author.id);
@@ -217,6 +219,7 @@
on:keydown={handleAddNewComment}
placeholder="Add class comment"
class="w-full bg-transparent border border-gray-200 rounded-3xl"
required
/>
</div>
<button on:click={handleAddNewComment}>