From 6ca03ec6cd93315d8543d7c6e47d4dc62ace2e98 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Sun, 10 May 2020 22:19:10 +0500 Subject: [PATCH] refactor selection system --- apps/mobile/src/components/SelectionHeader/index.js | 4 ++-- apps/mobile/src/components/SelectionWrapper/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/mobile/src/components/SelectionHeader/index.js b/apps/mobile/src/components/SelectionHeader/index.js index d6c5f139f..f8967fb5e 100644 --- a/apps/mobile/src/components/SelectionHeader/index.js +++ b/apps/mobile/src/components/SelectionHeader/index.js @@ -13,11 +13,11 @@ import {TEMPLATE_DELETE} from '../DialogManager/templates'; export const SelectionHeader = () => { // State const [state, dispatch] = useTracked(); - const {colors, selectionMode, selectedItemsList, currentScreen} = state; + const {colors, selectionMode, selectedItemsList, currentScreen,containerState} = state; const [selectAll, setSelectAll] = useState(false); - return ( + return (containerState.noSelectionHeader ? null :