File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,7 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f
77### Documentation
88
99- Fixed paths to images in the “Attention badge” example
10+
11+ ### Bug fixes
12+
13+ - Fixed the page component's primary action to support ` LoadableAction ` s and ` DisableableAction ` s
Original file line number Diff line number Diff line change 11import {
22 ActionListItemDescriptor ,
3- BaseAction ,
43 IconableAction ,
54 DisableableAction ,
65 BadgeAction ,
6+ LoadableAction ,
7+ DestructableAction ,
78} from '../../types' ;
89import { PaginationDescriptor } from '../Pagination' ;
910import { Props as BreadcrumbProps } from '../Breadcrumbs' ;
@@ -36,11 +37,12 @@ export interface ActionProps {
3637 hasIndicator ?: boolean ;
3738}
3839
39- export interface PrimaryActionProps extends BaseAction {
40+ export interface PrimaryActionProps
41+ extends DisableableAction ,
42+ LoadableAction ,
43+ DestructableAction {
4044 /** Provides extra visual weight and identifies the primary action in a set of buttons */
4145 primary ?: boolean ;
42- /** Indicates a dangerous or potentially negative action */
43- destructive ?: boolean ;
4446}
4547
4648export interface HeaderProps {
You can’t perform that action at this time.
0 commit comments