mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Remove unused settings appearance section and txid handling warnings
This commit is contained in:
committed by
Stefan Ceriu
parent
cf44ffb454
commit
8c86bf9acb
@@ -32,9 +32,6 @@ struct SettingsScreen: View {
|
|||||||
userSection
|
userSection
|
||||||
.listRowBackground(rowBackgroundColor)
|
.listRowBackground(rowBackgroundColor)
|
||||||
|
|
||||||
appearanceSection
|
|
||||||
.listRowBackground(rowBackgroundColor)
|
|
||||||
|
|
||||||
analyticsSection
|
analyticsSection
|
||||||
.listRowBackground(rowBackgroundColor)
|
.listRowBackground(rowBackgroundColor)
|
||||||
|
|
||||||
@@ -84,28 +81,6 @@ struct SettingsScreen: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private var appearanceSection: some View {
|
|
||||||
Section {
|
|
||||||
Button(action: appearance) {
|
|
||||||
HStack {
|
|
||||||
Image(systemName: "paintpalette")
|
|
||||||
.foregroundColor(.element.systemGray)
|
|
||||||
.padding(4)
|
|
||||||
.background(Color.element.systemGray6)
|
|
||||||
.clipShape(Circle())
|
|
||||||
.frame(width: menuIconSize, height: menuIconSize)
|
|
||||||
Text(ElementL10n.settingsAppearance)
|
|
||||||
Spacer()
|
|
||||||
Image(systemName: "chevron.forward")
|
|
||||||
.foregroundColor(.element.tertiaryContent)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.listRowInsets(listRowInsets)
|
|
||||||
.foregroundColor(.element.primaryContent)
|
|
||||||
.accessibilityIdentifier("appearanceButton")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@ViewBuilder
|
@ViewBuilder
|
||||||
private var userAvatar: some View {
|
private var userAvatar: some View {
|
||||||
if let avatar = context.viewState.userAvatar {
|
if let avatar = context.viewState.userAvatar {
|
||||||
@@ -205,10 +180,6 @@ struct SettingsScreen: View {
|
|||||||
.accessibilityIdentifier("closeButton")
|
.accessibilityIdentifier("closeButton")
|
||||||
}
|
}
|
||||||
|
|
||||||
private func appearance() {
|
|
||||||
#warning("Not implemented")
|
|
||||||
}
|
|
||||||
|
|
||||||
private func close() {
|
private func close() {
|
||||||
context.send(viewAction: .close)
|
context.send(viewAction: .close)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ struct MessageTimelineItem<Content: MessageContentProtocol> {
|
|||||||
let content: Content
|
let content: Content
|
||||||
|
|
||||||
var id: String {
|
var id: String {
|
||||||
#warning("Handle txid properly")
|
|
||||||
switch item.key() {
|
switch item.key() {
|
||||||
case .transactionId(let txnID):
|
case .transactionId(let txnID):
|
||||||
return txnID
|
return txnID
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ struct EventTimelineItemProxy: CustomDebugStringConvertible {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var id: String {
|
var id: String {
|
||||||
#warning("Handle txid in a better way")
|
|
||||||
switch item.key() {
|
switch item.key() {
|
||||||
case .transactionId(let txnID):
|
case .transactionId(let txnID):
|
||||||
return txnID
|
return txnID
|
||||||
|
|||||||
Reference in New Issue
Block a user