Skip to content

Remove the unnecessary OnwardContainerType #14667

Description

@marjisound

The OnwardContainerType type, introduced in #14538
, was originally added to determine when a Card component is used within a More Galleries onward container.

However, upon review, it appears that the Card component already includes sufficient information through the existing props isOnwardContent and onwardsSource. These props together can identify when a card is used for More Galleries onward content, making the OnwardContainerType type redundant.

Simplify the codebase by removing unnecessary duplication and reduce maintenance overhead

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions