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
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