1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Change language working partially

Not all translatinos are updated
This commit is contained in:
Zhiyuan Zheng
2020-11-29 13:11:23 +01:00
parent 735cc0b903
commit 24d0681c9e
29 changed files with 525 additions and 125 deletions

View File

@ -4,11 +4,24 @@ import { useTheme } from 'src/utils/styles/ThemeManager'
import constants from 'src/utils/styles/constants'
const MenuContainer: React.FC = ({ ...props }) => {
export interface Props {
children: React.ReactNode
marginTop?: boolean
}
const MenuContainer: React.FC<Props> = ({ ...props }) => {
const { theme } = useTheme()
return (
<View style={[styles.base, { borderTopColor: theme.separator }]}>
<View
style={[
styles.base,
{
borderTopColor: theme.separator,
marginTop: props.marginTop ? constants.GLOBAL_PAGE_PADDING : 0
}
]}
>
{props.children}
</View>
)
@ -17,7 +30,7 @@ const MenuContainer: React.FC = ({ ...props }) => {
const styles = StyleSheet.create({
base: {
borderTopWidth: 1,
marginBottom: constants.SPACING_M
marginBottom: constants.GLOBAL_PAGE_PADDING
}
})