()
| 85 | AboutModalV.displayName = "AboutModalV"; |
| 86 | |
| 87 | const 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 | |
| 111 | AboutModal.displayName = "AboutModal"; |
| 112 |
nothing calls this directly
no test coverage detected