Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(setup): detect mobile app for sync illustration
Elian Doran4c2b5ff1f72a
diff --git a/apps/client/src/setup.tsx b/apps/client/src/setup.tsxindex 79046e8de5..c3a02aed18 100644--- a/apps/client/src/setup.tsx+++ b/apps/client/src/setup.tsx@@ -444,10 +444,17 @@ function SyncFromDesktop({ setState }: { setState: (state: State) => void }) {}function SyncIllustration({ targetDevice }: { targetDevice: "desktop" | "server" }) {+ let icon = "bx bx-globe";+ if (isMobileApp()) {+ icon = "bx bx-mobile-alt";+ } else if (isElectron()) {+ icon = "bx bx-desktop";+ }+return (<div class="sync-illustration"><div>- <Icon icon={isElectron() ? "bx bx-desktop" : "bx bx-globe"} />+ <Icon icon={icon} />{t("setup.sync-illustration-this-device")}</div><div class="sync-illustration-arrows" />