Skip to content

Commit

Permalink
Merge pull request #646 from Arnei/remove-dead-code
Browse files Browse the repository at this point in the history
Remove dead code
  • Loading branch information
ziegenberg authored Jun 5, 2024
2 parents 2e8d2bc + f517300 commit 892a429
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 91 deletions.
13 changes: 1 addition & 12 deletions src/components/events/partials/EventActionCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,4 @@ const EventActionCell = ({
);
};

// Getting state data out of redux store
// @ts-expect-error TS(7006): Parameter 'state' implicitly has an 'any' type.
const mapStateToProps = (state) => ({

});

// Mapping actions to dispatch
// @ts-expect-error TS(7006): Parameter 'dispatch' implicitly has an 'any' type.
const mapDispatchToProps = (dispatch) => ({
});

export default connect(mapStateToProps, mapDispatchToProps)(EventActionCell);
export default EventActionCell;
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ import { updateSeriesTheme } from "../../../../slices/seriesDetailsSlice";
* This component renders the tab for editing the theme of a certain series
*/
const SeriesDetailsThemeTab = ({
// @ts-expect-error TS(7031): Binding element 'theme' implicitly has an 'any' ty... Remove this comment to see the full error message
theme,
// @ts-expect-error TS(7031): Binding element 'seriesId' implicitly has an 'any'... Remove this comment to see the full error message
seriesId,
// @ts-expect-error TS(7031): Binding element 'themeNames' implicitly has an 'an... Remove this comment to see the full error message
themeNames,
seriesId,
}: {
theme: string,
themeNames: any[]
seriesId: string
}) => {
const { t } = useTranslation();
const dispatch = useAppDispatch();
Expand Down Expand Up @@ -125,18 +126,4 @@ const SeriesDetailsThemeTab = ({
);
};

// Getting state data out of redux store
// @ts-expect-error TS(7006): Parameter 'state' implicitly has an 'any' type.
const mapStateToProps = (state) => ({

});

// @ts-expect-error TS(7006): Parameter 'dispatch' implicitly has an 'any' type.
const mapDispatchToProps = (dispatch) => ({

});

export default connect(
mapStateToProps,
mapDispatchToProps
)(SeriesDetailsThemeTab);
export default SeriesDetailsThemeTab;
11 changes: 1 addition & 10 deletions src/components/events/partials/SeriesActionsCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,4 @@ const SeriesActionsCell = ({
);
};

// Getting state data out of redux store
// @ts-expect-error TS(7006): Parameter 'state' implicitly has an 'any' type.
const mapStateToProps = (state) => ({
});

// @ts-expect-error TS(7006): Parameter 'dispatch' implicitly has an 'any' type.
const mapDispatchToProps = (dispatch) => ({
});

export default connect(mapStateToProps, mapDispatchToProps)(SeriesActionsCell);
export default SeriesActionsCell;
16 changes: 1 addition & 15 deletions src/components/recordings/partials/RecordingsActionCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,4 @@ const RecordingsActionCell = ({
);
};

// Getting state data out of redux store
// @ts-expect-error TS(7006): Parameter 'state' implicitly has an 'any' type.
const mapStateToProps = (state) => ({

});

// Mapping actions to dispatch
// @ts-expect-error TS(7006): Parameter 'dispatch' implicitly has an 'any' type.
const mapDispatchToProps = (dispatch) => ({
});

export default connect(
mapStateToProps,
mapDispatchToProps
)(RecordingsActionCell);
export default RecordingsActionCell;
13 changes: 1 addition & 12 deletions src/components/statistics/Statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,4 @@ const Statistics: React.FC = () => {
);
};

// Getting state data out of redux store
// @ts-expect-error TS(7006): Parameter 'state' implicitly has an 'any' type.
const mapStateToProps = (state) => ({
});

// Mapping actions to dispatch
// @ts-expect-error TS(7006): Parameter 'dispatch' implicitly has an 'any' type.
const mapDispatchToProps = (dispatch) => ({

});

export default connect(mapStateToProps, mapDispatchToProps)(Statistics);
export default Statistics;
12 changes: 1 addition & 11 deletions src/components/users/partials/GroupsActionsCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,4 @@ const GroupsActionsCell = ({
);
};

// Getting state data out of redux store
// @ts-expect-error TS(7006): Parameter 'state' implicitly has an 'any' type.
const mapStateToProps = (state) => ({

});

// @ts-expect-error TS(7006): Parameter 'dispatch' implicitly has an 'any' type.
const mapDispatchToProps = (dispatch) => ({
});

export default connect(mapStateToProps, mapDispatchToProps)(GroupsActionsCell);
export default GroupsActionsCell;
13 changes: 1 addition & 12 deletions src/components/users/partials/UsersActionsCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,4 @@ const UsersActionCell = ({
);
};

// Getting state data out of redux store
// @ts-expect-error TS(7006): Parameter 'state' implicitly has an 'any' type.
const mapStateToProps = (state) => ({

});

// Mapping actions to dispatch
// @ts-expect-error TS(7006): Parameter 'dispatch' implicitly has an 'any' type.
const mapDispatchToProps = (dispatch) => ({
});

export default connect(mapStateToProps, mapDispatchToProps)(UsersActionCell);
export default UsersActionCell;

0 comments on commit 892a429

Please sign in to comment.