MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / reduceCardHeight

Function reduceCardHeight

frontend/src/hooks/useCardOperation.ts:27–33  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

25 };
26
27 const reduceCardHeight = (id: string) => {
28 const card = getCardById("", id);
29 const newIndex = LEVEL_LIST.findIndex((item) => item === card?.height);
30 if (newIndex >= 0 && LEVEL_LIST[newIndex + 1] && card) {
31 card.height = LEVEL_LIST[newIndex + 1];
32 }
33 };
34
35 const addCardWidth = (id: string) => {
36 const card = getCardById("", id);

Callers

nothing calls this directly

Calls 1

getCardByIdFunction · 0.85

Tested by

no test coverage detected