kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
chore: rename Node component to `NodeItem` for convention
rodzic
858544b0f4
commit
b50e982049
|
@ -64,7 +64,7 @@ import com.geeksville.mesh.util.metersIn
|
||||||
|
|
||||||
@OptIn(ExperimentalMaterialApi::class)
|
@OptIn(ExperimentalMaterialApi::class)
|
||||||
@Composable
|
@Composable
|
||||||
fun NodeInfo(
|
fun NodeItem(
|
||||||
thisNodeInfo: NodeInfo?,
|
thisNodeInfo: NodeInfo?,
|
||||||
thatNodeInfo: NodeInfo,
|
thatNodeInfo: NodeInfo,
|
||||||
gpsFormat: Int,
|
gpsFormat: Int,
|
||||||
|
@ -288,7 +288,7 @@ fun NodeInfoSimplePreview() {
|
||||||
AppTheme {
|
AppTheme {
|
||||||
val thisNodeInfo = NodeInfoPreviewParameterProvider().values.first()
|
val thisNodeInfo = NodeInfoPreviewParameterProvider().values.first()
|
||||||
val thatNodeInfo = NodeInfoPreviewParameterProvider().values.last()
|
val thatNodeInfo = NodeInfoPreviewParameterProvider().values.last()
|
||||||
NodeInfo(
|
NodeItem(
|
||||||
thisNodeInfo = thisNodeInfo,
|
thisNodeInfo = thisNodeInfo,
|
||||||
thatNodeInfo = thatNodeInfo,
|
thatNodeInfo = thatNodeInfo,
|
||||||
1,
|
1,
|
||||||
|
@ -315,7 +315,7 @@ fun NodeInfoPreview(
|
||||||
text = "Details Collapsed",
|
text = "Details Collapsed",
|
||||||
color = MaterialTheme.colors.onBackground
|
color = MaterialTheme.colors.onBackground
|
||||||
)
|
)
|
||||||
NodeInfo(
|
NodeItem(
|
||||||
thisNodeInfo = thisNodeInfo,
|
thisNodeInfo = thisNodeInfo,
|
||||||
thatNodeInfo = thatNodeInfo,
|
thatNodeInfo = thatNodeInfo,
|
||||||
gpsFormat = 0,
|
gpsFormat = 0,
|
||||||
|
@ -328,7 +328,7 @@ fun NodeInfoPreview(
|
||||||
text = "Details Shown",
|
text = "Details Shown",
|
||||||
color = MaterialTheme.colors.onBackground
|
color = MaterialTheme.colors.onBackground
|
||||||
)
|
)
|
||||||
NodeInfo(
|
NodeItem(
|
||||||
thisNodeInfo = thisNodeInfo,
|
thisNodeInfo = thisNodeInfo,
|
||||||
thatNodeInfo = thatNodeInfo,
|
thatNodeInfo = thatNodeInfo,
|
||||||
gpsFormat = 0,
|
gpsFormat = 0,
|
|
@ -171,7 +171,7 @@ fun NodesScreen(
|
||||||
|
|
||||||
items(nodes, key = { it.num }) { node ->
|
items(nodes, key = { it.num }) { node ->
|
||||||
val nodeInfo = node.toNodeInfo()
|
val nodeInfo = node.toNodeInfo()
|
||||||
NodeInfo(
|
NodeItem(
|
||||||
thisNodeInfo = ourNodeInfo,
|
thisNodeInfo = ourNodeInfo,
|
||||||
thatNodeInfo = nodeInfo,
|
thatNodeInfo = nodeInfo,
|
||||||
gpsFormat = state.gpsFormat,
|
gpsFormat = state.gpsFormat,
|
||||||
|
|
Ładowanie…
Reference in New Issue