From 62dc0d4fe2a111d010711d8cd1570b13e80976f6 Mon Sep 17 00:00:00 2001 From: Paulo Bernardo Date: Fri, 22 Sep 2023 14:24:13 -0300 Subject: [PATCH] improve: remove unused definition prop --- src/components/sticky/Sticky.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/sticky/Sticky.tsx b/src/components/sticky/Sticky.tsx index b3c39deb8..54b1c217b 100644 --- a/src/components/sticky/Sticky.tsx +++ b/src/components/sticky/Sticky.tsx @@ -1,11 +1,10 @@ import { react as bindCallbacks } from 'auto-bind'; -import { FlowDefinition, StickyNote } from 'flowTypes'; +import { StickyNote } from 'flowTypes'; import * as React from 'react'; import TextareaAutosize from 'react-autosize-textarea/lib'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { DragEvent } from 'services/Plumber'; -import AppState from 'store/state'; import { DispatchWithState, UpdateSticky, updateSticky } from 'store/thunks'; import { CONFIRMATION_TIME, QUIET_NOTE, snapToGrid } from 'utils'; @@ -24,7 +23,6 @@ export interface StickyPassedProps { } export interface StickyStoreProps { - definition: FlowDefinition; updateSticky: UpdateSticky; } @@ -241,9 +239,7 @@ export class Sticky extends React.Component { } /* istanbul ignore next */ -const mapStateToProps = ({ flowContext: { definition } }: AppState) => ({ - definition -}); +const mapStateToProps = () => ({}); /* istanbul ignore next */ const mapDispatchToProps = (dispatch: DispatchWithState) => {