Skip to content

Commit

Permalink
chore: remove redundant code related to the controlBar
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Nov 28, 2024
1 parent 93001ed commit b84a470
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 112 deletions.
29 changes: 0 additions & 29 deletions src/actions/controlBar.js

This file was deleted.

16 changes: 0 additions & 16 deletions src/api/controlBar.js

This file was deleted.

4 changes: 0 additions & 4 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import React, { useEffect } from 'react'
import { connect } from 'react-redux'
import { Redirect, HashRouter as Router, Route, Switch } from 'react-router-dom'
import { acClearActiveModalDimension } from '../actions/activeModalDimension.js'
import { tSetControlBarRows } from '../actions/controlBar.js'
import { tFetchDashboards } from '../actions/dashboards.js'
import { acClearDashboardsFilter } from '../actions/dashboardsFilter.js'
import { acClearEditDashboard } from '../actions/editDashboard.js'
Expand All @@ -31,7 +30,6 @@ const App = (props) => {

useEffect(() => {
props.fetchDashboards()
props.setControlBarRows()
props.setShowDescription()

// store the headerbar height for controlbar height calculations
Expand Down Expand Up @@ -117,13 +115,11 @@ const App = (props) => {
App.propTypes = {
fetchDashboards: PropTypes.func,
resetState: PropTypes.func,
setControlBarRows: PropTypes.func,
setShowDescription: PropTypes.func,
}

const mapDispatchToProps = {
fetchDashboards: tFetchDashboards,
setControlBarRows: tSetControlBarRows,
setShowDescription: tSetShowDescription,
resetState: () => (dispatch) => {
dispatch(acSetSelected({}))
Expand Down
28 changes: 0 additions & 28 deletions src/reducers/__tests__/controlBar.spec.js

This file was deleted.

33 changes: 0 additions & 33 deletions src/reducers/controlBar.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/reducers/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { combineReducers } from 'redux'
import activeModalDimension from './activeModalDimension.js'
import controlBar from './controlBar.js'
import dashboards from './dashboards.js'
import dashboardsFilter from './dashboardsFilter.js'
import dimensions from './dimensions.js'
Expand All @@ -19,7 +18,6 @@ export default combineReducers({
dashboards,
selected,
dashboardsFilter,
controlBar,
visualizations,
messages,
editDashboard,
Expand Down

0 comments on commit b84a470

Please sign in to comment.