From 1017017bd1c2ff4100667c7db24621ae24675b35 Mon Sep 17 00:00:00 2001 From: jack Date: Tue, 8 Jul 2025 18:52:16 +0200 Subject: [PATCH] Update alert text to lowercase style --- bitchat/Views/ContentView.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bitchat/Views/ContentView.swift b/bitchat/Views/ContentView.swift index 7271d677..8572403c 100644 --- a/bitchat/Views/ContentView.swift +++ b/bitchat/Views/ContentView.swift @@ -297,13 +297,13 @@ struct ContentView: View { .foregroundColor(Color.red) } .buttonStyle(.plain) - .alert("Leave Channel", isPresented: $showLeaveChannelAlert) { - Button("Cancel", role: .cancel) { } - Button("Leave", role: .destructive) { + .alert("leave channel?", isPresented: $showLeaveChannelAlert) { + Button("cancel", role: .cancel) { } + Button("leave", role: .destructive) { viewModel.leaveChannel(currentChannel) } } message: { - Text("Are you sure you want to leave \(currentChannel)?") + Text("sure you want to leave \(currentChannel)?") } } } else { @@ -852,13 +852,13 @@ struct ContentView: View { ) } .buttonStyle(.plain) - .alert("Leave Channel", isPresented: $showLeaveChannelAlert) { - Button("Cancel", role: .cancel) { } - Button("Leave", role: .destructive) { + .alert("leave channel", isPresented: $showLeaveChannelAlert) { + Button("cancel", role: .cancel) { } + Button("leave", role: .destructive) { viewModel.leaveChannel(channel) } } message: { - Text("Are you sure you want to leave \(channel)?") + Text("sure you want to leave \(channel)?") } } }