interface SettingsProps {
    accountSettingsTitle: string;
    changeEmailLabel: string;
    changeEmailRoute?: string;
    changeNameLabel?: string;
    changeNameRoute?: string;
    changePasswordLabel?: string;
    changePasswordRoute?: string;
    changePhoneNumberLabel?: string;
    changePhoneNumberRoute?: string;
    deactivateAccountLabel?: string;
    deactivateAccountRoute?: string;
    linkText?: string;
    onNavigate: ((url) => void);
    pageTitle: string;
    screenMode: "desktop" | "mobile";
    type?: "list" | "group";
    userInfo: {
        email: string;
        name?: string;
        phoneNumber?: string;
    };
}

Properties

accountSettingsTitle: string

The title of the block of settings

changeEmailLabel: string

The label for the change email link

changeEmailRoute?: string

The route for the change email link

changeNameLabel?: string
changeNameRoute?: string
changePasswordLabel?: string

The label for the change password link

changePasswordRoute?: string

The route for the change password link

changePhoneNumberLabel?: string
changePhoneNumberRoute?: string
deactivateAccountLabel?: string

The label for the delete account link

deactivateAccountRoute?: string

The route for the delete account link

linkText?: string
onNavigate: ((url) => void)

Link item clicked callback

Type declaration

    • (url): void
    • Link item clicked callback

      Parameters

      • url: string

      Returns void

pageTitle: string

The title of the page

screenMode: "desktop" | "mobile"

the size of the screen *

type?: "list" | "group"
userInfo: {
    email: string;
    name?: string;
    phoneNumber?: string;
}

The user information

Type declaration

  • email: string
  • Optional name?: string
  • Optional phoneNumber?: string

Generated using TypeDoc