diff --git a/app/components/channel_actions/convert_to_channel/convert_to_channel_label.tsx b/app/components/channel_actions/convert_to_channel/convert_to_channel_label.tsx new file mode 100644 index 000000000..b3c56a58f --- /dev/null +++ b/app/components/channel_actions/convert_to_channel/convert_to_channel_label.tsx @@ -0,0 +1,31 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + +import React from 'react'; + +import OptionItem from '@app/components/option_item'; +import {Screens} from '@app/constants'; +import {useTheme} from '@app/context/theme'; +import {dismissBottomSheet, goToScreen} from '@app/screens/navigation'; +import {preventDoubleTap} from '@app/utils/tap'; + +const ConvertToChannelLabel = () => { + const goToConvertToPrivateChannl = preventDoubleTap(async () => { + await dismissBottomSheet(); + + const title = 'Convert to Private Channel'; + goToScreen(Screens.CONVERT_GM_TO_CHANNEL, title, {}); + }); + + // LOL: localize this + return ( + + ); +}; + +export default ConvertToChannelLabel; diff --git a/app/screens/convert_gm_to_channel/convert_gm_to_channel.tsx b/app/screens/convert_gm_to_channel/convert_gm_to_channel.tsx new file mode 100644 index 000000000..8ac4f0d2f --- /dev/null +++ b/app/screens/convert_gm_to_channel/convert_gm_to_channel.tsx @@ -0,0 +1,17 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + +import React from 'react'; +import { Text, View } from 'react-native'; + +type Props = { + +} + +const ConvertGMToChannel = (props: Props) => { + return ( + {'ConvertGMToChannel component'} + ); +}; + +export default ConvertGMToChannel; diff --git a/app/screens/convert_gm_to_channel/index.tsx b/app/screens/convert_gm_to_channel/index.tsx new file mode 100644 index 000000000..912207fa8 --- /dev/null +++ b/app/screens/convert_gm_to_channel/index.tsx @@ -0,0 +1,8 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + +import {withDatabase} from '@nozbe/watermelondb/DatabaseProvider'; + +import ConvertGMToChannel from './convert_gm_to_channel'; + +export default ConvertGMToChannel; diff --git a/app/screens/navigation.ts b/app/screens/navigation.ts index 8fde51685..b1f02203a 100644 --- a/app/screens/navigation.ts +++ b/app/screens/navigation.ts @@ -245,7 +245,6 @@ export function getThemeFromState(): Theme { function isScreenRegistered(screen: AvailableScreens) { const notImplemented = NOT_READY.includes(screen) || !Object.values(Screens).includes(screen); if (notImplemented) { - console.log('AAAA'); Alert.alert( 'Temporary error ' + screen, 'The functionality you are trying to use has not been implemented yet',