Skip to content

Commit

Permalink
feat: debug mode undisclosed addition
Browse files Browse the repository at this point in the history
  • Loading branch information
mbetancurt committed Jul 9, 2020
1 parent 7e9af5f commit 68c4d29
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/map/hooks/useOperationFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const initial = S.fromPairs([
S.Pair('1')(true),
S.Pair('2')(true),
S.Pair('3')(true),
S.Pair('4')(false)
/*
S.Pair('3')(false),
S.Pair('4')(true),*/
Expand All @@ -31,7 +32,7 @@ const useOperationFilter = () => {
const [filteredOperations, setFilteredOperations] = useState([]);
const { t, } = useTranslation();

const states = [
let states = [
{
text: t('map.filter.accepted'),
filter: 'ACCEPTED'
Expand Down Expand Up @@ -67,6 +68,12 @@ const useOperationFilter = () => {
},
*/
];
const closedState = {
text: t('map.filter.closed'),
filter: 'CLOSED'
};

if (adesState.debug) states.push(closedState);

useEffect(() => {
actions.map.addId(id);
Expand Down

0 comments on commit 68c4d29

Please sign in to comment.