docs: tweak ColorPicker usage in customize theme doc (#50673)

This commit is contained in:
sakuraee 2024-09-02 09:50:59 +08:00 committed by GitHub
parent b4409727f8
commit d80b9568e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ const App: React.FC = () => {
return (
<>
<ColorPicker showText value={primary} onChangeComplete={(color) => setPrimary(color.toHexString())} />
<ColorPicker showText value={primary} onChange={(color) => setPrimary(color.toHexString())} />
<Divider />
<ConfigProvider
theme={{

View File

@ -221,7 +221,7 @@ const App: React.FC = () => {
return (
<>
<ColorPicker showText value={primary} onChangeComplete={(color) => setPrimary(color.toHexString())} />
<ColorPicker showText value={primary} onChange={(color) => setPrimary(color.toHexString())} />
<Divider />
<ConfigProvider
theme={{