@sendgrid/ui-components
Advanced tools
Comparing version 1.43.2 to 1.43.3
@@ -8,2 +8,3 @@ import React, { Component } from 'react'; | ||
onClose: (image?: SGLibraryImage) => void; | ||
header?: React.ReactNode; | ||
renderActions: (image?: SGLibraryImage, closeDetailsPane?: () => void) => React.ReactNode; | ||
@@ -10,0 +11,0 @@ } |
@@ -5,2 +5,3 @@ import cn from 'classnames'; | ||
import Styles from './styles/image-library-details-pane.module.scss'; | ||
const DEFAULT_HEADER = React.createElement("h3", null, "Image Details"); | ||
export class ImageLibraryDetailsPane extends Component { | ||
@@ -15,3 +16,3 @@ constructor() { | ||
render() { | ||
const { alert, dateFormatter, image, renderActions } = this.props; | ||
const { alert, dateFormatter, image, renderActions, header = DEFAULT_HEADER, } = this.props; | ||
const dimensionsKnown = image.width && image.height; | ||
@@ -22,3 +23,3 @@ return (React.createElement("div", { className: cn(Styles.wrap, 'wrap') }, | ||
React.createElement(Icon, { className: cn(Styles.x, 'x'), type: "x" })), | ||
React.createElement("h3", null, "Image Details"), | ||
header, | ||
React.createElement("div", { className: cn(Styles['img-wrap'], 'img-wrap') }, | ||
@@ -25,0 +26,0 @@ React.createElement("img", { src: image.originalUrl })), |
{ | ||
"name": "@sendgrid/ui-components", | ||
"version": "1.43.2", | ||
"version": "1.43.3", | ||
"description": "Reusable UI components for Sendgrid's applications.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
977831
9341