Skip to content

App: Make a generic SharedItemView #524

@deandrebaker

Description

@deandrebaker

All shared item views (PostView, AdView, etc.) have parts that are common between them, such as the creator section, title, content, comment bar, etc. We should make a new SharedItemView component that renders these common components. We can then use this component in all of the other shared item views to reduce lines of code by a significant amount.

This component should optionally allow children to be passed in. The children will be used to render additional parts of a view that are unique to it, such as the poll options on the PollView.

Usage should look like the following:

image

Metadata

Metadata

Assignees

Labels

easyEasy difficulty levellow priorityLow priority ticket

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions