MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / render

Function render

src/pages/components/ScriptSetting/Match.tsx:103–108  ·  view source on GitHub ↗
(col)

Source from the content-addressed store, hash-verified

101 key: "byUser",
102 width: 100,
103 render(col) {
104 if (col) {
105 return <span style={{ color: "#52c41a" }}>{t("yes")}</span>;
106 }
107 return <span style={{ color: "#c4751a" }}>{t("no")}</span>;
108 },
109 },
110 {
111 title: t("action"),

Callers

nothing calls this directly

Calls 5

updateExcludeAndRefreshFunction · 0.85
updateMatchAndRefreshFunction · 0.85
pushMethod · 0.80
resetExcludeMethod · 0.45
resetMatchMethod · 0.45

Tested by

no test coverage detected