mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: pass the new top pick color props properly
This commit is contained in:
parent
d5c9754d09
commit
7ca5f4b11c
2 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue