From 4c27d6151dcc7e9ccbf9f22e422d5bff8b0dc5ce Mon Sep 17 00:00:00 2001 From: Stefano Verzegnassi Date: Sun, 31 Dec 2023 06:10:02 +0100 Subject: [PATCH] Fixing types --- src/pages/RandomNeutralColor.tsx | 6 +++--- src/pages/ThemeGenerator.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/RandomNeutralColor.tsx b/src/pages/RandomNeutralColor.tsx index dd8ce0f..9d1b931 100644 --- a/src/pages/RandomNeutralColor.tsx +++ b/src/pages/RandomNeutralColor.tsx @@ -52,11 +52,11 @@ function RandomNeutralColorPage() {
Light Color Stop: {lightColorStop} - setLightColorStop(value)} /> + setLightColorStop(value as number)} />
Dark Color Stop: {darkColorStop} - setDarkColorStop(value)} /> + setDarkColorStop(value as number)} />
Base Color: {hue} @@ -93,7 +93,7 @@ function RandomNeutralColorPage() {
Saturation: {saturation} - setSaturation(value)} /> + setSaturation(value as number)} />
diff --git a/src/pages/ThemeGenerator.tsx b/src/pages/ThemeGenerator.tsx index bed2081..6d82749 100644 --- a/src/pages/ThemeGenerator.tsx +++ b/src/pages/ThemeGenerator.tsx @@ -36,7 +36,7 @@ function ThemeGeneratorPage() { />
Yellow drift: {yellowDrift} - setYellowDrift(value)} /> + setYellowDrift(value as number)} />