forked from vergnet/application-amicale
Changed running machine icon
This commit is contained in:
parent
4228a5555d
commit
7ef23ca952
1 changed files with 7 additions and 15 deletions
|
@ -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>)}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue