Browse Source

Change background

Jeremie Pardou-Piquemal 3 years ago
parent
commit
432edc9ae9
3 changed files with 1 additions and 12 deletions
  1. BIN
      public/board.png
  2. 1 7
      src/components/Board/Board.js
  3. 0 5
      src/components/Board/Selector.js

BIN
public/board.png


+ 1 - 7
src/components/Board/Board.js

@@ -20,13 +20,7 @@ const Placeholder = styled.p`
 
 const StyledBoard = styled.div.attrs(() => ({ className: "board" }))`
   position: relative;
-  background: repeating-linear-gradient(
-    45deg,
-    #606dbc60,
-    #606dbc60 10px,
-    #46529860 10px,
-    #46529860 20px
-  );
+  background-image: url(/board.png);
   width: ${({ size }) => size}px;
   height: ${({ size }) => size}px;
 `;

+ 0 - 5
src/components/Board/Selector.js

@@ -72,11 +72,6 @@ const Selector = ({ children }) => {
 
       setSelector({ ...stateRef.current });
       wrapperRef.current.style.cursor = "crosshair";
-    } else {
-      if (selected.length) {
-        /* Should remove selection if clic another item */
-        /*setSelected([])*/
-      }
     }
   };