Skip to content

Commit eba4c6f

Browse files
Update the code in the usage-quickeditor.md (#663)
1 parent ddbfbb9 commit eba4c6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/get-started/usage-quickeditor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The `:gravatar-quickeditor` module provides a fully featured component that allo
1919
The Quick Editor's functionality can be tailored using `QuickEditorScopeOption` to define what the user can edit. This allows for a focused experience depending on the desired interaction:
2020
* **`QuickEditorScopeOption.avatarPicker()`**: Launches the Quick Editor focused solely on avatar management. Users can select an existing image, upload a new one, or remove their current Gravatar through a streamlined interface. This scope is ideal when you only need to offer avatar editing capabilities.
2121
* **`QuickEditorScopeOption.aboutEditor()`**: This option presents the Quick Editor with tools to modify the user's "About" profile section. This typically includes details such as their display name, full name, pronouns, a public description or bio, and current location.
22-
* **`QuickEditorScopeOption.avatarPickerAndAboutEditor()`**: For a comprehensive profile editing experience, this combined scope allows users to modify both their avatar and their "About Me" details. The Quick Editor will provide a way to navigate between the avatar editing and "About" sections seamlessly without needing to close and re-launch the component.
22+
* **`QuickEditorScopeOption.avatarAndAbout()`**: For a comprehensive profile editing experience, this combined scope allows users to modify both their avatar and their "About Me" details. The Quick Editor will provide a way to navigate between the avatar editing and "About" sections seamlessly without needing to close and re-launch the component.
2323

2424
For all of this to be possible, the QuickEditor needs an authorization token to perform requests on behalf of the user.
2525

@@ -241,7 +241,7 @@ GravatarQuickEditorBottomSheet(
241241
|-----------------------------------------------|-----------------------------------------------|
242242
| ![](/docs/images/about_editor_all_fields.png) | ![](/docs/images/about_editor_two_fields.png) |
243243

244-
### `QuickEditorScopeOption.avatarPickerAndAboutEditor()`
244+
### `QuickEditorScopeOption.avatarAndAbout()`
245245

246246
This scope option combines both the avatar management and "About" section editing functionalities. It allows users to seamlessly switch between editing their avatar and updating their profile information without needing to close and reopen the Quick Editor.
247247

@@ -254,7 +254,7 @@ Here's an example of how to configure the `AvatarPickerAndAboutEditor` scope:
254254
GravatarQuickEditorBottomSheet(
255255
gravatarQuickEditorParams = GravatarQuickEditorParams {
256256
...
257-
scopeOption = QuickEditorScopeOption.avatarPickerAndAboutEditor(
257+
scopeOption = QuickEditorScopeOption.avatarAndAbout(
258258
config = AvatarPickerAndAboutEditorConfiguration(
259259
contentLayout = AvatarPickerContentLayout.Vertical,
260260
fields = AboutInputField.all,

0 commit comments

Comments
 (0)