generated from lucien/api-template
add: added le poisson steve
This commit is contained in:
parent
d6a4f991bd
commit
f188453373
3 changed files with 9 additions and 0 deletions
BIN
front/public/le_poisson_steve.png
Normal file
BIN
front/public/le_poisson_steve.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 68 KiB |
|
@ -30,6 +30,11 @@ export default function MessageComponent({ message, user, channel, deleteMessage
|
|||
<img src="/pig.png" alt="Gros cochon" className="pig" />
|
||||
)}
|
||||
</div>
|
||||
<div>
|
||||
{message.content.toLocaleLowerCase().includes("le poisson steve") && (
|
||||
<img src="/le_poisson_steve.png" alt="Le poisson steve" className="fish" />
|
||||
)}
|
||||
</div>
|
||||
{channel && deleteMessage ? (
|
||||
user?.id === message.user_id || user?.id === channel?.owner_id || user?.admin === 1) && (
|
||||
<button onClick={() => {deleteMessage(message.id)}}>Delete</button>
|
||||
|
|
|
@ -13,4 +13,8 @@ html {
|
|||
|
||||
.pig {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.fish {
|
||||
width: 300px;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue