From e8d5794cf773d66e9750f20b7b05ffc23926ae8c Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 9 Jan 2025 16:14:35 -0700 Subject: [PATCH] Refactor dialog name. --- .../main/java/com/hyperling/expensetracker/ExpenseScreen.kt | 2 +- .../{ExpenseDialogAdd.kt => ExpenseScreenDialogAdd.kt} | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) rename app/src/main/java/com/hyperling/expensetracker/{ExpenseDialogAdd.kt => ExpenseScreenDialogAdd.kt} (97%) diff --git a/app/src/main/java/com/hyperling/expensetracker/ExpenseScreen.kt b/app/src/main/java/com/hyperling/expensetracker/ExpenseScreen.kt index 973c760..47d52fa 100644 --- a/app/src/main/java/com/hyperling/expensetracker/ExpenseScreen.kt +++ b/app/src/main/java/com/hyperling/expensetracker/ExpenseScreen.kt @@ -55,7 +55,7 @@ fun ExpenseScreen( } ){ padding -> if(state.isAddingExpense){ - ExpenseDialogAdd(state, onEvent) + ExpenseScreenDialogAdd(state, onEvent) } LazyColumn ( diff --git a/app/src/main/java/com/hyperling/expensetracker/ExpenseDialogAdd.kt b/app/src/main/java/com/hyperling/expensetracker/ExpenseScreenDialogAdd.kt similarity index 97% rename from app/src/main/java/com/hyperling/expensetracker/ExpenseDialogAdd.kt rename to app/src/main/java/com/hyperling/expensetracker/ExpenseScreenDialogAdd.kt index 0ea6ce9..4e9da77 100644 --- a/app/src/main/java/com/hyperling/expensetracker/ExpenseDialogAdd.kt +++ b/app/src/main/java/com/hyperling/expensetracker/ExpenseScreenDialogAdd.kt @@ -14,11 +14,10 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.text.input.KeyboardCapitalization import androidx.compose.ui.text.input.KeyboardType -import androidx.compose.ui.text.style.TextGeometricTransform import androidx.compose.ui.unit.dp @Composable -fun ExpenseDialogAdd( +fun ExpenseScreenDialogAdd( state: ExpenseState, onEvent: (ExpenseEvent) -> Unit, modifier: Modifier = Modifier