Game settings and better socket performance
- Added game settings - Reworked GamePropsSchema for only relevant information -> Prisma schema and zod object - Imporved toast notifications - No duplicate socket connections anymore - Using now Zustand for the gameProps instead of React Context & State
This commit is contained in:
parent
12295b316f
commit
61ae4b901d
31 changed files with 652 additions and 350 deletions
13
leaky-ships/components/profileImg.tsx
Normal file
13
leaky-ships/components/profileImg.tsx
Normal file
|
@ -0,0 +1,13 @@
|
|||
import React from "react"
|
||||
|
||||
function profileImg(src: string) {
|
||||
return (
|
||||
<img
|
||||
style={{ transform: "scale(1.5)", borderRadius: "100%" }}
|
||||
src={src}
|
||||
alt="profile picture"
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default profileImg
|
Loading…
Add table
Add a link
Reference in a new issue