NathanielCoxson / pixel-arcade

A web app hosting different browser games.
1 stars 0 forks source link

move game notification overlays into a component #115

Closed NathanielCoxson closed 9 months ago

NathanielCoxson commented 9 months ago

Condense this JSX into a single component that accepts the image source and display boolean value as props to know when to display the overlay. This way there is less repeated code being used and the new component can also be used within the other game components. https://github.com/NathanielCoxson/pixel-arcade/blob/38d8586f79d65d268fc33f59a990d6d107d5790a/app/games/minesweeper/Game.tsx#L139-L167