mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-05 18:38:54 +00:00
* Mattermost Blocks * Move block renderer to its own components folder * Sync translation layer * UX fixes * Refactor button to use the button component * Code review * Fix CI * Add animations to collapse blocks * Add unit tests * Add e2e tests and related fixes * Address coderabbit comments * Address UX comments * Address feedback * Address coderabbit comments * Fix snapshots * Sync with webapp translation * Add node limit to button markdown node * Address feedback * i18n-extract * Fix test * Move image utils to the utils folder * Remove unneeded style * Revert build script change --------- Co-authored-by: Mattermost Build <build@mattermost.com>
27 lines
795 B
TypeScript
27 lines
795 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {useIntl} from 'react-intl';
|
|
|
|
import {useTheme} from '@context/theme';
|
|
import {getHeaderOptions, useNavigationHeader} from '@hooks/navigation_header';
|
|
import MmBlocksContentScreen from '@screens/mm_blocks_content';
|
|
|
|
export default function MmBlocksContentRoute() {
|
|
const intl = useIntl();
|
|
const theme = useTheme();
|
|
|
|
useNavigationHeader({
|
|
showWhenPushed: true,
|
|
headerOptions: {
|
|
headerTitle: intl.formatMessage({
|
|
id: 'mobile.routes.mm_blocks_content',
|
|
defaultMessage: 'Scrollable content',
|
|
}),
|
|
...getHeaderOptions(theme),
|
|
},
|
|
});
|
|
|
|
return <MmBlocksContentScreen/>;
|
|
}
|