Enode — API Reference
    Preparing search index...
    • "Download my data" rows inside YourDataSection, driven by downloadMyDataMode: a team export row (portal drawer, or a link out to the portal from the app) and/or a self export sheet that asks the backend to e-mail the user their own data. When the backend turns out not to support self export, the self row becomes "Ask your coach for an export" (athletes) or disappears (coaches).

      Parameters

      • role: {
            app: "tracking" | "portal";
            email?: string | null;
            onOpenTeamExport?: () => void;
            organisationName?: string | null;
            role: AccountRoleKey;
            userId?: string | null;
        }

        the signed-in user's role key.

        • app: "tracking" | "portal"
        • Optionalemail?: string | null

          Signed-in e-mail: named in the "on its way" confirmation.

        • OptionalonOpenTeamExport?: () => void
        • OptionalorganisationName?: string | null
        • role: AccountRoleKey
        • OptionaluserId?: string | null

          Signed-in user id: keys the remembered "last export" line.

      Returns Element | null