chore: rename Node component to `NodeItem` for convention

pull/1252/head
andrekir 2024-09-16 20:27:13 -03:00
rodzic 858544b0f4
commit b50e982049
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -64,7 +64,7 @@ import com.geeksville.mesh.util.metersIn
@OptIn(ExperimentalMaterialApi::class)
@Composable
fun NodeInfo(
fun NodeItem(
thisNodeInfo: NodeInfo?,
thatNodeInfo: NodeInfo,
gpsFormat: Int,
@ -288,7 +288,7 @@ fun NodeInfoSimplePreview() {
AppTheme {
val thisNodeInfo = NodeInfoPreviewParameterProvider().values.first()
val thatNodeInfo = NodeInfoPreviewParameterProvider().values.last()
NodeInfo(
NodeItem(
thisNodeInfo = thisNodeInfo,
thatNodeInfo = thatNodeInfo,
1,
@ -315,7 +315,7 @@ fun NodeInfoPreview(
text = "Details Collapsed",
color = MaterialTheme.colors.onBackground
)
NodeInfo(
NodeItem(
thisNodeInfo = thisNodeInfo,
thatNodeInfo = thatNodeInfo,
gpsFormat = 0,
@ -328,7 +328,7 @@ fun NodeInfoPreview(
text = "Details Shown",
color = MaterialTheme.colors.onBackground
)
NodeInfo(
NodeItem(
thisNodeInfo = thisNodeInfo,
thatNodeInfo = thatNodeInfo,
gpsFormat = 0,

Wyświetl plik

@ -171,7 +171,7 @@ fun NodesScreen(
items(nodes, key = { it.num }) { node ->
val nodeInfo = node.toNodeInfo()
NodeInfo(
NodeItem(
thisNodeInfo = ourNodeInfo,
thatNodeInfo = nodeInfo,
gpsFormat = state.gpsFormat,