Added settings button in ActionsDashboardItem
这个提交包含在:
父节点
cacfb2862c
当前提交
2d26f2c395
共有 1 个文件被更改,包括 15 次插入 和 2 次删除
|
@ -20,6 +20,8 @@ class ActionsDashBoardItem extends React.PureComponent<Props> {
|
|||
|
||||
openDrawer = () => this.props.navigation.openDrawer();
|
||||
|
||||
gotToSettings = () => this.props.navigation.navigate("SettingsScreen");
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Card style={{
|
||||
|
@ -31,10 +33,17 @@ class ActionsDashBoardItem extends React.PureComponent<Props> {
|
|||
icon="information"
|
||||
mode="contained"
|
||||
onPress={this.openDrawer}
|
||||
style={styles.button}
|
||||
style={styles.servicesButton}
|
||||
>
|
||||
PLUS DE SERVICES
|
||||
</Button>
|
||||
<Button
|
||||
icon="settings"
|
||||
mode="contained"
|
||||
onPress={this.gotToSettings}
|
||||
style={styles.settingsButton}
|
||||
compact
|
||||
/>
|
||||
</Card.Content>
|
||||
</Card>
|
||||
);
|
||||
|
@ -58,8 +67,12 @@ const styles = StyleSheet.create({
|
|||
flex: 1,
|
||||
flexDirection: 'row',
|
||||
},
|
||||
button: {
|
||||
servicesButton: {
|
||||
marginLeft: 'auto',
|
||||
marginRight: 5,
|
||||
},
|
||||
settingsButton: {
|
||||
marginLeft: 5,
|
||||
marginRight: 'auto',
|
||||
}
|
||||
});
|
||||
|
|
正在加载…
在新工单中引用