Rework storage structs, link preview
This commit is contained in:
@ -30,21 +30,7 @@ struct LocalizedPageDetailView: View {
|
||||
}
|
||||
}
|
||||
|
||||
OptionalStringPropertyView(
|
||||
title: "Preview Title",
|
||||
text: $page.linkPreviewTitle,
|
||||
prompt: page.title,
|
||||
footer: "The title to use for the page when linking to it")
|
||||
|
||||
OptionalImagePropertyView(
|
||||
title: "Preview Image",
|
||||
selectedImage: $page.linkPreviewImage,
|
||||
footer: "The image to show for previews of this page")
|
||||
|
||||
OptionalTextFieldPropertyView(
|
||||
title: "Preview Description",
|
||||
text: $page.linkPreviewDescription,
|
||||
footer: "The description to show in previews of the page")
|
||||
LinkPreviewDetailView(linkPreview: page.linkPreview, fallbackTitle: page.title)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user