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,
theme = defaultAppState.theme,
name = `${t("labels.untitled")}-${getDateTime()}`,
strokeColorTopPicks,
backgroundColorTopPicks,
} = props;
this.state = {
...defaultAppState,

View file

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