-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move MessagesList and BadWordsMessage to seperate components
- Loading branch information
Showing
3 changed files
with
258 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
const BadWordsMessage = ({ | ||
id, | ||
showBadword, | ||
hideBadword, | ||
}) => { | ||
return ( | ||
<div className="dark:text-white text-black flex flex-col border-red border w-full rounded-r-md p-3"> | ||
<p>Your buddy is trying to send you a bad word</p> | ||
<div className="flex w-full gap-6"> | ||
<button | ||
onClick={() => showBadword(id)} | ||
className="text-sm cursor-pointer" | ||
> | ||
See | ||
</button> | ||
<button | ||
onClick={() => hideBadword(id)} | ||
className="text-red text-sm cursor-pointer" | ||
> | ||
Hide | ||
</button> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default BadWordsMessage; |
Oops, something went wrong.