Remove incorrect types

This commit is contained in:
Mark Tolmacs 2025-03-15 14:04:45 +01:00
parent cf75f6bfe0
commit ee68dc3f1c

View file

@ -2088,7 +2088,7 @@ class App extends React.Component<AppProps, AppState> {
swapPreviewOnAlt: true,
colorPickerType:
type === "stroke" ? "elementStroke" : "elementBackground",
onSelect: (color: string, event: KeyboardEvent) => {
onSelect: (color, event) => {
const shouldUpdateStrokeColor =
(type === "background" && event.altKey) ||
(type === "stroke" && !event.altKey);