Skip to content

Commit 2c9d986

Browse files
authored
chore: Add lift to bgAdmin util function (#1924)
1 parent 14ac1b5 commit 2c9d986

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

packages/background-charm-service/bgAdmin.tsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/// <cts-enable />
2-
import { Cell, Default, derive, handler, NAME, recipe, UI } from "commontools";
2+
import {
3+
Cell,
4+
Default,
5+
derive,
6+
handler,
7+
lift,
8+
NAME,
9+
recipe,
10+
UI,
11+
} from "commontools";
312

413
const DISABLED_VIA_UI = "Disabled via UI";
514

@@ -112,9 +121,9 @@ function StatusIcon(
112121
);
113122
}
114123

115-
function getRenderData(
124+
const getRenderData = lift((
116125
charm: BGCharmEntry,
117-
) {
126+
) => {
118127
const {
119128
integration,
120129
space: rawSpace,
@@ -150,7 +159,7 @@ Last run ${lastRunDate ? fromNow(lastRunDate) : "never"} ${
150159
integration,
151160
name,
152161
};
153-
}
162+
});
154163

155164
const css = `
156165
.bg-charm-container {

0 commit comments

Comments
 (0)