fix: Native styles fixes (#12606)

* feat(conference/native): update indicator styles

* feat(prejoin/native): removed unnecessary styles

* feat(mobile/navigation): fixed header buttons style

* feat(mobile/navigation): fixed linter
This commit is contained in:
Calinteodor
2022-11-22 21:50:16 +02:00
committed by GitHub
parent 93566e313e
commit 6bce0bc917
5 changed files with 19 additions and 39 deletions

View File

@@ -2,18 +2,11 @@ import React from 'react';
import { Text, TouchableRipple } from 'react-native-paper';
import { Icon } from '../../../base/icons';
import type { StyleType } from '../../../base/styles';
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
import { navigationStyles } from './styles';
type Props = {
/**
* Style of the header button .
*/
buttonStyle?: StyleType,
/**
* Is the button disabled?
*/
@@ -42,7 +35,6 @@ type Props = {
const HeaderNavigationButton
= ({
buttonStyle,
disabled,
label,
onPress,
@@ -55,14 +47,10 @@ const HeaderNavigationButton
src ? (
<TouchableRipple
onPress = { onPress }
style = { [
buttonStyle,
navigationStyles.headerNavigationButtonIcon ] } >
style = { navigationStyles.headerNavigationButtonIcon } >
<Icon
color = { BaseTheme.palette.link01Active }
size = { 24 }
src = { src }
style = { navigationStyles.headerNavigationIcon } />
src = { src } />
</TouchableRipple>
) : (
<TouchableRipple