GSA/code-gov-front-end

View on GitHub
src/actions/update-agencies-filters.js

Summary

Maintainability
A
0 mins
Test Coverage
import { UPDATE_AGENCIES_FILTERS } from 'constants/actions'

export default function(category, value, change) {
  const intent = change === 'checked' ? 'add' : 'remove'
  return { type: UPDATE_AGENCIES_FILTERS, category, value, intent }
}