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

Function gapClass

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

Source from the content-addressed store, hash-verified

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

Callers 2

SearchResultsLayoutFunction · 0.90
FeedContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected