mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix(theme): fix gradients for colour picker
This commit is contained in:
@@ -41,7 +41,6 @@ export default function Picker({
|
|||||||
const latestValuesRef = useRef({ customThemeColor, customOnChange, savePresets, presets });
|
const latestValuesRef = useRef({ customThemeColor, customOnChange, savePresets, presets });
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log(customState)
|
|
||||||
if (customState !== undefined) {
|
if (customState !== undefined) {
|
||||||
setCustomThemeColor(customState)
|
setCustomThemeColor(customState)
|
||||||
} else {
|
} else {
|
||||||
@@ -105,6 +104,7 @@ export default function Picker({
|
|||||||
onChange={(color: string) => {
|
onChange={(color: string) => {
|
||||||
if (customOnChange) {
|
if (customOnChange) {
|
||||||
customOnChange(color)
|
customOnChange(color)
|
||||||
|
setCustomThemeColor(color)
|
||||||
} else {
|
} else {
|
||||||
setCustomThemeColor(color)
|
setCustomThemeColor(color)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user