Closed NathanielCoxson closed 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
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