mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-28 11:12:38 +01:00
Fix lint errors after upgrades and narrow tsc
This commit is contained in:
1 parent
5c1fba4b0c
commit
6f1fd7a254
35 files changed
+98
-15
No files matched your search
@@ -530,10 +530,12 @@ export const Editor = forwardRef<EditorView | undefined, EditorProps>(function E
|
||||
}
|
||||
results.push(
|
||||
Children.map(actions, (existingChild) => {
|
||||
if (!isValidElement(existingChild)) return null;
|
||||
if (!isValidElement<{ className?: string }>(existingChild)) return null;
|
||||
const existingProps = existingChild.props;
|
||||
|
||||
return cloneElement(existingChild, {
|
||||
...existingChild.props,
|
||||
className: classNames(existingChild.props.className, actionClassName),
|
||||
...existingProps,
|
||||
className: classNames(existingProps.className, actionClassName),
|
||||
});
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user