Skip to content

Commit

Permalink
Update KeyValueEditView.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
fillwithjoy1 authored Feb 25, 2024
1 parent a944bd1 commit 39ebc15
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,6 @@ fun EditPropertyDialog(
}
}
Row(modifier = Modifier.align(Alignment.End).padding(top = 16.dp)) {
TextButton(
border = BorderStroke(0.5.dp, MaterialTheme.colorScheme.primary),
modifier = Modifier.padding(end = 8.dp),
shape = ButtonDefaults.outlinedShape,
onClick = { dismissDialog() },
) { Text(stringResource(R.string.dismiss)) }
TextButton(
border = if (selectedValueType != null) BorderStroke(0.5.dp, MaterialTheme.colorScheme.primary) else null,
shape = ButtonDefaults.outlinedShape,
Expand All @@ -227,6 +221,12 @@ fun EditPropertyDialog(
},
enabled = selectedValueType != null,
) { Text(stringResource(R.string.confirm)) }
TextButton(
border = BorderStroke(0.5.dp, MaterialTheme.colorScheme.primary),
modifier = Modifier.padding(end = 8.dp),
shape = ButtonDefaults.outlinedShape,
onClick = { dismissDialog() },
) { Text(stringResource(R.string.dismiss)) }
}
}
}
Expand Down

0 comments on commit 39ebc15

Please sign in to comment.