-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `additionalToolbarItems` were only shown inside the `DamPage`, but not in the `ChooseFileDialog`. To fix this, we add a `additionalToolbarItems` option to `DamConfigProvider` that works both inside the DAM and for the DAM blocks. We also deprecate the `additionalToolbarItems` prop of `DamPage` in favor of this option.
- Loading branch information
1 parent
80a6d8d
commit 1b37b1f
Showing
5 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
"@comet/cms-admin": patch | ||
--- | ||
|
||
Show `additionalToolbarItems` in `ChooseFileDialog` | ||
|
||
The `additionalToolbarItems` were only shown inside the `DamPage`, but not in the `ChooseFileDialog`. | ||
To fix this, use the `additionalToolbarItems` option in `DamConfigProvider`. | ||
The `additionalToolbarItems` prop of `DamPage` has been deprecated in favor of this option. | ||
|
||
**Previously:** | ||
|
||
```tsx | ||
<DamPage | ||
// ... | ||
additionalToolbarItems={<ImportFromExternalDam />} | ||
/> | ||
``` | ||
|
||
**Now:** | ||
|
||
```tsx | ||
<DamConfigProvider | ||
value={{ | ||
// ... | ||
additionalToolbarItems: <ImportFromExternalDam />, | ||
}} | ||
> | ||
{/*...*/} | ||
</DamConfigProvider> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters