Minor Fixes

This commit is contained in:
Rajarshee Chatterjee
2023-02-18 14:02:04 +05:30
parent 929bd2c97d
commit 84a2561c41
6 changed files with 53 additions and 78 deletions
+3 -8
View File
@@ -8,11 +8,8 @@ import {
View,
ViewProps,
} from 'react-native';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import color from 'color';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { overlay } from 'react-native-paper';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
type Action = {
icon: string;
@@ -40,9 +37,7 @@ export const Actionbar: React.FC<ActionbarProps> = ({
style={[
styles.actionbarContainer,
{
backgroundColor: theme.isDark
? overlay(2, theme.surface)
: theme.secondaryContainer,
backgroundColor: theme.surface2,
minHeight: 80 + bottom,
paddingBottom: bottom,
},
@@ -54,7 +49,7 @@ export const Actionbar: React.FC<ActionbarProps> = ({
key={id}
android_ripple={{
radius: 50,
color: color(theme.primary).alpha(0.12).string(),
color: theme.rippleColor,
borderless: true,
}}
onPress={onPress}
+1 -1
View File
@@ -15,7 +15,7 @@ const Button: React.FC<ButtonProps> = props => {
return (
<PaperButton {...props} theme={{ colors: theme }}>
{props.title}
{props.title || props.children}
</PaperButton>
);
};