Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove modal from the project #924

Merged
merged 1 commit into from
Jun 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/actions/modal.js

This file was deleted.

10 changes: 1 addition & 9 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'

import BetaBanner from './BetaBanner'
import BetaModal from './BetaModal'
import ClearCacheBtn from './ClearCacheBtn'
import Disclaimer from './Disclaimer'
import Feedback from './Feedback'
Expand All @@ -13,7 +12,6 @@ import Glossary from './Glossary'
import Header from './Header'
import * as feedbackActions from '../actions/feedback'
import * as glossaryActions from '../actions/glossary'
import * as modalActions from '../actions/modal'

const isProd = process.env.NODE_ENV === 'production'

Expand All @@ -28,12 +26,6 @@ const App = ({ actions, appState, children, dispatch, location }) => (
<Glossary actions={actions} {...appState.glossary} />
<Footer actions={actions} />
{!isProd && <ClearCacheBtn />}
{isProd &&
appState.modal.isShown &&
<BetaModal
onClose={actions.hideModal}
onFeedbackClick={actions.showFeedback}
/>}
<Feedback
isOpen={appState.feedback.isOpen}
onClose={actions.hideFeedback}
Expand All @@ -50,7 +42,7 @@ const mapStateToProps = state => ({ appState: state })
const mapDispatchToProps = dispatch => ({
dispatch,
actions: bindActionCreators(
{ ...feedbackActions, ...glossaryActions, ...modalActions },
{ ...feedbackActions, ...glossaryActions },
dispatch,
),
})
Expand Down
92 changes: 0 additions & 92 deletions src/components/BetaModal.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
Expand Up @@ -5,7 +5,6 @@ import agencies from './agencies'
import feedback from './feedback'
import filters from './filters'
import glossary from './glossary'
import modal from './modal'
import nibrs from './nibrs'
import sidebar from './sidebar'
import summaries from './summary'
Expand All @@ -16,7 +15,6 @@ export default combineReducers({
feedback,
filters,
glossary,
modal,
nibrs,
sidebar,
summaries,
Expand Down
14 changes: 0 additions & 14 deletions src/reducers/modal.js

This file was deleted.