forked from Ivasoft/mattermost-mobile
Add terms of service (#6777)
* Add terms of service * Add i18n * Fix test * Address feedback * Address ux feedback * Update texts * Avoid Review to show on top of ToS Co-authored-by: Daniel Espino <danielespino@MacBook-Pro-de-Daniel.local>
This commit is contained in:
committed by
GitHub
parent
5fae120826
commit
fe52fcaab6
@@ -1,12 +1,12 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import {EffectCallback, useEffect} from 'react';
|
||||
import {useEffect} from 'react';
|
||||
import {BackHandler} from 'react-native';
|
||||
|
||||
import NavigationStore from '@store/navigation_store';
|
||||
|
||||
const useAndroidHardwareBackHandler = (componentId: string, callback: EffectCallback) => {
|
||||
const useAndroidHardwareBackHandler = (componentId: string, callback: () => void) => {
|
||||
useEffect(() => {
|
||||
const backHandler = BackHandler.addEventListener('hardwareBackPress', () => {
|
||||
if (NavigationStore.getNavigationTopComponentId() === componentId) {
|
||||
|
||||
Reference in New Issue
Block a user