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:
@ -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
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user