develop (#43)
* fix(ts): use strict mode strictNullChecks etc * chore: Use extended React.HTMLAttributes<> (#41) * refactor(code-format): add prettier closes #42 * feat(renderer): add snap to grid option closes #20 * chore(dependabot): use develop as target branch
This commit is contained in:
@@ -2,7 +2,7 @@ import React, { CSSProperties } from 'react';
|
||||
import classnames from 'classnames';
|
||||
|
||||
import { fitView, zoomIn, zoomOut } from '../../utils/graph';
|
||||
import PlusIcon from '../../../assets/icons/plus.svg';
|
||||
import PlusIcon from '../../../assets/icons/plus.svg';
|
||||
import MinusIcon from '../../../assets/icons/minus.svg';
|
||||
import FitviewIcon from '../../../assets/icons/fitview.svg';
|
||||
|
||||
@@ -13,10 +13,7 @@ const baseStyle: CSSProperties = {
|
||||
left: 10,
|
||||
};
|
||||
|
||||
interface ControlProps {
|
||||
style?: CSSProperties;
|
||||
className?: string
|
||||
};
|
||||
interface ControlProps extends React.HTMLAttributes<HTMLDivElement> {}
|
||||
|
||||
export default ({ style, className }: ControlProps) => {
|
||||
const mapClasses: string = classnames('react-flow__controls', className);
|
||||
@@ -26,7 +23,7 @@ export default ({ style, className }: ControlProps) => {
|
||||
className={mapClasses}
|
||||
style={{
|
||||
...baseStyle,
|
||||
...style
|
||||
...style,
|
||||
}}
|
||||
>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user