Skip to content

Commit

Permalink
Make remove dns destructive
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa authored and albin-mullvad committed Dec 29, 2023
1 parent 6d9b4b1 commit 9ddeb23
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import com.ramcosta.composedestinations.annotation.Destination
import com.ramcosta.composedestinations.result.ResultBackNavigator
import com.ramcosta.composedestinations.spec.DestinationStyle
import net.mullvad.mullvadvpn.R
import net.mullvad.mullvadvpn.compose.button.NegativeButton
import net.mullvad.mullvadvpn.compose.button.PrimaryButton
import net.mullvad.mullvadvpn.compose.textfield.DnsTextField
import net.mullvad.mullvadvpn.lib.theme.AppTheme
Expand Down Expand Up @@ -186,7 +187,7 @@ fun DnsDialog(
)

if (!state.isNewEntry) {
PrimaryButton(
NegativeButton(
modifier = Modifier.fillMaxWidth(),
onClick = onRemoveDnsClick,
text = stringResource(id = R.string.remove_button)
Expand Down

0 comments on commit 9ddeb23

Please sign in to comment.