From fee10f6006589c8f936974c7d5db3bd3e54d442f Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Sat, 1 Jun 2024 11:31:43 +0400 Subject: [PATCH] Small refactor --- src/mainMenu.jsx | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/src/mainMenu.jsx b/src/mainMenu.jsx index b5f9609..096726e 100644 --- a/src/mainMenu.jsx +++ b/src/mainMenu.jsx @@ -22,26 +22,22 @@ export default () => { onValueChange={setPlayerSymbol} loop={false} > - - - - - - + {[ + ["cross", Cross], + ["oval", Oval], + ].map(([value, Symbol]) => ( + + + + ))}

Remember : X goes first