mirror of
git://jb55.com/damus
synced 2024-10-06 11:43:21 +00:00
createaccount: ui: move key text and profile picture selection into frame
This commit is contained in:
parent
06ba72a23d
commit
5b7339a0de
@ -30,7 +30,6 @@ struct CreateAccountView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
VStack {
|
VStack {
|
||||||
ProfilePictureSelector(pubkey: account.pubkey, viewModel: profileUploadViewModel, callback: uploadedProfilePicture(image_url:))
|
|
||||||
|
|
||||||
HStack(alignment: .top) {
|
HStack(alignment: .top) {
|
||||||
VStack {
|
VStack {
|
||||||
@ -67,10 +66,27 @@ struct CreateAccountView: View {
|
|||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
regen_key()
|
regen_key()
|
||||||
}
|
}
|
||||||
|
VStack(alignment: .center) {
|
||||||
|
ProfilePictureSelector(pubkey: account.pubkey, viewModel: profileUploadViewModel, callback: uploadedProfilePicture(image_url:))
|
||||||
|
|
||||||
|
Text(NSLocalizedString("Public Key", comment: "Label to indicate the public key of the account."))
|
||||||
|
.bold()
|
||||||
|
.padding()
|
||||||
|
.onTapGesture {
|
||||||
|
regen_key()
|
||||||
|
}
|
||||||
|
|
||||||
|
KeyText($account.pubkey)
|
||||||
|
.padding(.horizontal, 20)
|
||||||
|
.onTapGesture {
|
||||||
|
regen_key()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.frame(minWidth: 300, maxWidth: .infinity, minHeight: 300, alignment: .center)
|
||||||
|
.background {
|
||||||
|
RoundedRectangle(cornerRadius: 12)
|
||||||
|
.fill(DamusColors.adaptableGrey, strokeBorder: .gray.opacity(0.5), lineWidth: 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
Button(action: {
|
Button(action: {
|
||||||
|
Loading…
Reference in New Issue
Block a user