From 173522edc3e078df147d0f459c1affde58fcecf4 Mon Sep 17 00:00:00 2001 From: Halid Date: Sun, 14 Apr 2024 13:01:32 +0300 Subject: [PATCH] fix table color selector design and refactor code --- src/components/ColorPalette.jsx | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/src/components/ColorPalette.jsx b/src/components/ColorPalette.jsx index b218807f..d24a3f4e 100644 --- a/src/components/ColorPalette.jsx +++ b/src/components/ColorPalette.jsx @@ -17,31 +17,16 @@ export default function ColorPalette({
-
- {tableThemes.slice(0, Math.ceil(tableThemes.length / 2)).map((c) => ( +
+ {tableThemes.map((c) => ( - ))} -
-
- {tableThemes.slice(Math.ceil(tableThemes.length / 2)).map((c) => ( -