-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
9 additions
and
234 deletions.
There are no files selected for viewing
216 changes: 0 additions & 216 deletions
216
...oid/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/ReportProblemStateDialog.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,27 +49,27 @@ import net.mullvad.mullvadvpn.viewmodel.SendingReportUiState | |
|
||
@Preview | ||
@Composable | ||
private fun ReportProblemScreenPreview() { | ||
private fun PreviewReportProblemScreen() { | ||
AppTheme { ReportProblemScreen(uiState = ReportProblemUiState()) } | ||
} | ||
|
||
@Preview | ||
@Composable | ||
private fun ReportProblemSendingScreenPreview() { | ||
private fun PreviewReportProblemSendingScreen() { | ||
AppTheme { | ||
ReportProblemScreen(uiState = ReportProblemUiState(false, SendingReportUiState.Sending)) | ||
} | ||
} | ||
|
||
@Preview | ||
@Composable | ||
private fun ReportProblemConfirmNoEmailScreenPreview() { | ||
private fun PreviewReportProblemConfirmNoEmailScreen() { | ||
AppTheme { ReportProblemScreen(uiState = ReportProblemUiState(true)) } | ||
} | ||
|
||
@Preview | ||
@Composable | ||
private fun ReportProblemSuccessScreenPreview() { | ||
private fun PreviewReportProblemSuccessScreen() { | ||
AppTheme { | ||
ReportProblemScreen( | ||
uiState = ReportProblemUiState(false, SendingReportUiState.Success("[email protected]")) | ||
|
@@ -79,7 +79,7 @@ private fun ReportProblemSuccessScreenPreview() { | |
|
||
@Preview | ||
@Composable | ||
private fun ReportProblemErrorScreenPreview() { | ||
private fun PreviewReportProblemErrorScreen() { | ||
AppTheme { | ||
ReportProblemScreen( | ||
uiState = | ||
|
@@ -127,7 +127,7 @@ fun ReportProblemScreen( | |
var email by rememberSaveable { mutableStateOf("") } | ||
var description by rememberSaveable { mutableStateOf("") } | ||
|
||
// Dialog to show sending states | ||
// Show sending states | ||
if (uiState.sendingState != null) { | ||
Column( | ||
modifier = | ||
|
@@ -140,15 +140,6 @@ fun ReportProblemScreen( | |
ErrorContent({ onSendReport(email, description) }, onClearSendResult) | ||
is SendingReportUiState.Success -> SentContent(uiState.sendingState) | ||
} | ||
// ShowReportProblemState( | ||
// uiState.sendingState, | ||
// onDismiss = onClearSendResult, | ||
// onClearForm = { | ||
// email = "" | ||
// description = "" | ||
// }, | ||
// retry = { onSendReport(email, description) } | ||
// ) | ||
return@CollapsingToolbarScaffold | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters