Changed running machine icon

This commit is contained in:
Arnaud Vergnet 2020-05-20 10:05:56 +02:00
parent 4228a5555d
commit 7ef23ca952

View file

@ -1,5 +1,5 @@
import * as React from 'react'; import * as React from 'react';
import {ActivityIndicator, Avatar, List, ProgressBar, Surface, Text, withTheme} from 'react-native-paper'; import {Avatar, List, ProgressBar, Surface, Text, withTheme} from 'react-native-paper';
import {StyleSheet, View} from "react-native"; import {StyleSheet, View} from "react-native";
import ProxiwashConstants from "../../../constants/ProxiwashConstants"; import ProxiwashConstants from "../../../constants/ProxiwashConstants";
import i18n from "i18n-js"; import i18n from "i18n-js";
@ -147,20 +147,12 @@ class ProxiwashListItem extends React.Component<Props> {
</Text> </Text>
</View> </View>
<View style={{justifyContent: 'center',}}> <View style={{justifyContent: 'center',}}>
{ <Avatar.Icon
isRunning icon={stateIcon}
? <ActivityIndicator color={colors.text}
animating={true} size={30}
size={'small'} style={styles.icon}
style={{marginLeft: 10}}/> />
: <Avatar.Icon
icon={stateIcon}
color={colors.text}
size={30}
style={styles.icon}
/>
}
</View> </View>
</View>)} </View>)}
/> />