| 1 |
__( 'Global CSS Class', 'elementor' ); |
| 2 |
__( 'Global CSS Classes', 'elementor' ); |
| 3 |
__( 'CSS Class manager' ) } |
| 4 |
</PanelHeaderTitle> |
| 5 |
<CloseButton sx={ { marginLeft: 'auto' } } /> |
| 6 |
</Stack> |
| 7 |
</PanelHeader> |
| 8 |
<PanelBody px={ 2 }> |
| 9 |
<GlobalClassesList /> |
| 10 |
</PanelBody> |
| 11 |
</Panel> |
| 12 |
</ErrorBoundary> |
| 13 |
); |
| 14 |
} |
| 15 |
|
| 16 |
const CloseButton = ( props: IconButtonProps ) => { |
| 17 |
const { close } = usePanelActions(); |
| 18 |
|
| 19 |
return ( |
| 20 |
<IconButton size="small" color="secondary" onClick={ close } { ...props }> |
| 21 |
<XIcon fontSize="small" /> |
| 22 |
</IconButton> |
| 23 |
); |
| 24 |
}; |
| 25 |
|
| 26 |
const ErrorBoundaryFallback = () => ( |
| 27 |
<Box role="alert" sx={ { minHeight: '100%', p: 2 } }> |
| 28 |
<Alert severity="error" sx={ { mb: 2, maxWidth: 400, textAlign: 'center' } }> |
| 29 |
<strong>{ __( 'Something went wrong', 'elementor' ); |