MCPcopy
hub / github.com/wavetermdev/waveterm / AboutModal

Function AboutModal

frontend/app/modals/about.tsx:87–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85AboutModalV.displayName = "AboutModalV";
86
87const AboutModal = () => {
88 const fullConfig = useAtomValue(atoms.fullConfigAtom);
89 const versionString = `${fullConfig?.version ?? ""} (${isDev() ? "dev-" : ""}${fullConfig?.buildtime ?? ""})`;
90 const updaterChannel = fullConfig?.settings?.["autoupdate:channel"] ?? "latest";
91
92 useEffect(() => {
93 fireAndForget(async () => {
94 RpcApi.RecordTEventCommand(
95 TabRpcClient,
96 { event: "action:other", props: { "action:type": "about" } },
97 { noresponse: true }
98 );
99 });
100 }, []);
101
102 return (
103 <AboutModalV
104 versionString={versionString}
105 updaterChannel={updaterChannel}
106 onClose={() => modalsModel.popModal()}
107 />
108 );
109};
110
111AboutModal.displayName = "AboutModal";
112

Callers

nothing calls this directly

Calls 3

fireAndForgetFunction · 0.90
isDevFunction · 0.85
RecordTEventCommandMethod · 0.65

Tested by

no test coverage detected