The AccountTile
component can be used when the user needs to frequently switch between or manage different accounts.
Esri Professional Services
Joey Harig
jharig
Esri Professional Services
Joey Harig
jharig
Esri Professional Services
Joey Harig
jharig
Another Organization
Someone Else
selse
useAccountManager
hookProperty | Type | Required | Default | Description |
---|---|---|---|---|
actions | Arrayof | false | [] | Actions to be included in the dropdown. Each action should describe a label and an onClick method. |
isAuthenticated | Bool | false | false | Is the user currently logged in or has their authentication expired? |
width | String | false | 100% | Style prop to define the width of the tile. |
authenticatedText | String | false | Signed in | Text to show when the account is authenticated. |
expiredText | String | false | Session expired | Text to show when the account has expired (is not authenticated). |
clickable | Bool | false | true | Can the time be clicked (false will disable hover effects and pointer events) |
hideAuthentication | Bool | false | false | Should the account tile authentication be hidden |
user | Object | true | - | The ArcGIS user object. |
orgName | String | false | - | Name of the user's organization. |
userThumbnail | Shape | true | - | Object containing thumbnail url and fallback letters for the avatar. If url is falsy, the avatar will show letters instead. |
orgThumbnail | Shape | false | - | Object containing thumbnail url and fallback letters for the avatar. If url is falsy, the avatar will show letters instead. If orgThumbnail or orgName are not given, no org avatar will be shown. |