mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-27 13:38:33 +02:00
fix(website): make ColorGenerator functional (#6344)
This commit is contained in:
parent
99dbf1a121
commit
f1fd346925
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ function ColorGenerator(): JSX.Element {
|
|||
const colorValue = event.target.value.replace(/^#+/, '');
|
||||
|
||||
try {
|
||||
Color(`#${baseColor}`);
|
||||
Color(`#${colorValue}`);
|
||||
setBaseColor(colorValue);
|
||||
} catch {
|
||||
// Don't update for invalid colors.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue