Skip to content

Commit

Permalink
Fix scoping for previews
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Sep 8, 2023
1 parent 854f0c2 commit ecccfe6
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import net.mullvad.mullvadvpn.R

@Preview
@Composable
fun PreviewCustomDnsInfoDialog() {
private fun PreviewCustomDnsInfoDialog() {
CustomDnsInfoDialog(onDismiss = {})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import net.mullvad.mullvadvpn.model.Device

@Preview
@Composable
fun PreviewShowDeviceRemovalDialog() {
private fun PreviewShowDeviceRemovalDialog() {
ShowDeviceRemovalDialog(
onDismiss = {},
onConfirm = {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import net.mullvad.mullvadvpn.viewmodel.StagedDns

@Preview
@Composable
fun PreviewDnsDialog() {
private fun PreviewDnsDialog() {
DnsDialog(
stagedDns = StagedDns.NewDns(CustomDnsItem.default(), StagedDns.ValidationResult.Success),
isAllowLanEnabled = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import net.mullvad.mullvadvpn.compose.component.textResource

@Preview
@Composable
fun PreviewLocalNetworkSharingInfoDialog() {
private fun PreviewLocalNetworkSharingInfoDialog() {
LocalNetworkSharingInfoDialog(onDismiss = {})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import net.mullvad.mullvadvpn.R

@Preview
@Composable
fun PreviewMalwareInfoDialog() {
private fun PreviewMalwareInfoDialog() {
MalwareInfoDialog(onDismiss = {})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import net.mullvad.mullvadvpn.util.isValidMtu

@Preview
@Composable
fun PreviewMtuDialog() {
private fun PreviewMtuDialog() {
MtuDialog(
mtuValue = "1234",
onMtuValueChanged = {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import net.mullvad.mullvadvpn.R

@Preview
@Composable
fun PreviewObfuscationInfoDialog() {
private fun PreviewObfuscationInfoDialog() {
ObfuscationInfoDialog(onDismiss = {})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import net.mullvad.mullvadvpn.R

@Preview
@Composable
fun PreviewQuantumResistanceInfoDialog() {
private fun PreviewQuantumResistanceInfoDialog() {
QuantumResistanceInfoDialog(onDismiss = {})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import net.mullvad.mullvadvpn.R

@Preview
@Composable
fun PreviewUdpOverTcpPortInfoDialog() {
private fun PreviewUdpOverTcpPortInfoDialog() {
UdpOverTcpPortInfoDialog(onDismiss = {})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import net.mullvad.mullvadvpn.util.asString

@Preview
@Composable
fun PreviewWireguardPortInfoDialog() {
private fun PreviewWireguardPortInfoDialog() {
WireguardPortInfoDialog(portRanges = listOf(PortRange(1, 2)), onDismiss = {})
}

Expand Down

0 comments on commit ecccfe6

Please sign in to comment.