Allows customization of the Create new list dialog
This commit is contained in:
+2
-1
@@ -40,6 +40,7 @@ import com.vitorpamplona.amethyst.ui.theme.DoubleVertSpacer
|
|||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun NewPeopleListCreationDialog(
|
fun NewPeopleListCreationDialog(
|
||||||
|
title: Int = R.string.follow_set_creation_dialog_title,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
onDismiss: () -> Unit,
|
onDismiss: () -> Unit,
|
||||||
onCreateList: (name: String, description: String?) -> Unit,
|
onCreateList: (name: String, description: String?) -> Unit,
|
||||||
@@ -56,7 +57,7 @@ fun NewPeopleListCreationDialog(
|
|||||||
horizontalArrangement = Arrangement.SpaceBetween,
|
horizontalArrangement = Arrangement.SpaceBetween,
|
||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
text = stringRes(R.string.follow_set_creation_dialog_title),
|
text = stringRes(title),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user