File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @nordcloud/gnui" ,
33 "description" : " Nordcloud Design System - a collection of reusable React components used in Nordcloud's SaaS products" ,
4- "version" : " 8.13.2 " ,
4+ "version" : " 8.13.3 " ,
55 "license" : " MIT" ,
66 "repository" : {
77 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -53,10 +53,10 @@ export function Modal({
5353 >
5454 { children }
5555 </ ModalContent >
56- { actions ?. length > 0 && (
56+ { actions && (
5757 < ModalActions >
5858 { actions
59- . sort ( ( a , b ) => a . order || 0 - b . order || 0 )
59+ ? .sort ( ( a , b ) => a . order || 0 - b . order || 0 )
6060 . map ( ( action , index ) => (
6161 < ModalAction
6262 key = { `modal-action-${ index } ` }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ type ModalAction = {
2222export type ModalProps = {
2323 isOpen : boolean ;
2424 onClose ?: ( event : React . KeyboardEvent | React . MouseEvent ) => void ;
25- actions : ModalAction [ ] ;
25+ actions ? : ModalAction [ ] ;
2626 contentLabel : string ;
2727 children : React . ReactNode ;
2828} ;
You can’t perform that action at this time.
0 commit comments