fix: pass the new top pick color props properly

This commit is contained in:
feng 2025-04-12 22:12:03 +09:00
parent d5c9754d09
commit 7ca5f4b11c
2 changed files with 6 additions and 0 deletions

View file

@ -741,6 +741,8 @@ class App extends React.Component<AppProps, AppState> {
objectsSnapModeEnabled = false, objectsSnapModeEnabled = false,
theme = defaultAppState.theme, theme = defaultAppState.theme,
name = `${t("labels.untitled")}-${getDateTime()}`, name = `${t("labels.untitled")}-${getDateTime()}`,
strokeColorTopPicks,
backgroundColorTopPicks,
} = props; } = props;
this.state = { this.state = {
...defaultAppState, ...defaultAppState,

View file

@ -53,6 +53,8 @@ const ExcalidrawBase = (props: ExcalidrawProps) => {
renderEmbeddable, renderEmbeddable,
aiEnabled, aiEnabled,
showDeprecatedFonts, showDeprecatedFonts,
strokeColorTopPicks,
backgroundColorTopPicks,
} = props; } = props;
const canvasActions = props.UIOptions?.canvasActions; const canvasActions = props.UIOptions?.canvasActions;
@ -143,6 +145,8 @@ const ExcalidrawBase = (props: ExcalidrawProps) => {
renderEmbeddable={renderEmbeddable} renderEmbeddable={renderEmbeddable}
aiEnabled={aiEnabled !== false} aiEnabled={aiEnabled !== false}
showDeprecatedFonts={showDeprecatedFonts} showDeprecatedFonts={showDeprecatedFonts}
strokeColorTopPicks={strokeColorTopPicks}
backgroundColorTopPicks={backgroundColorTopPicks}
> >
{children} {children}
</App> </App>