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

Function gapClass

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

Source from the content-addressed store, hash-verified

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

Callers 2

SearchResultsLayoutFunction · 0.90
FeedContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected