Skip to content

Commit

Permalink
improve: remove unused definition prop
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobernardoaf committed Sep 22, 2023
1 parent bc0c2de commit 62dc0d4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/sticky/Sticky.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -24,7 +23,6 @@ export interface StickyPassedProps {
}

export interface StickyStoreProps {
definition: FlowDefinition;
updateSticky: UpdateSticky;
}

Expand Down Expand Up @@ -241,9 +239,7 @@ export class Sticky extends React.Component<StickyProps, StickyState> {
}

/* istanbul ignore next */
const mapStateToProps = ({ flowContext: { definition } }: AppState) => ({
definition
});
const mapStateToProps = () => ({});

/* istanbul ignore next */
const mapDispatchToProps = (dispatch: DispatchWithState) => {
Expand Down

0 comments on commit 62dc0d4

Please sign in to comment.