mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Extract the disabled composer view into its own struct
This commit is contained in:
committed by
Stefan Ceriu
parent
e86fdaacaf
commit
fcf50d469e
@@ -69,11 +69,7 @@ struct ThreadTimelineScreen: View {
|
||||
if context.viewState.canSendMessage {
|
||||
composerToolbar
|
||||
} else {
|
||||
Text(L10n.screenRoomTimelineNoPermissionToPost)
|
||||
.font(.compound.bodyLG)
|
||||
.foregroundStyle(.compound.textDisabled)
|
||||
.multilineTextAlignment(.center)
|
||||
.padding(.vertical, 10) // Matches the MessageComposerStyleModifier
|
||||
ComposerDisabledView()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user