MCPcopy Create free account
hub / github.com/dailydotdev/apps / gapClass

Function gapClass

packages/shared/src/components/feeds/FeedContainer.tsx:83–94  ·  view source on GitHub ↗
({
  isList,
  isFeedLayoutList,
}: {
  isList: boolean;
  isFeedLayoutList: boolean;
})

Source from the content-addressed store, hash-verified

81 * Returns the appropriate gap class based on layout mode.
82 */
83export const gapClass = ({
84 isList,
85 isFeedLayoutList,
86}: {
87 isList: boolean;
88 isFeedLayoutList: boolean;
89}): string => {
90 if (isFeedLayoutList) {
91 return '';
92 }
93 return isList ? listGapClass : gridGapClass;
94};
95
96const cardClass = ({
97 isList,

Callers 2

SearchResultsLayoutFunction · 0.90
FeedContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected