ywana-core8 0.0.803 → 0.0.804

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.803",
3
+ "version": "0.0.804",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -8,7 +8,7 @@ import { ContentEditor } from './ContentEditor'
8
8
  /**
9
9
  * Edit Content Dialog
10
10
  */
11
- export const EditContentDialog = ({ label, type, value = {}, filter, validator, onOK, onError }) => {
11
+ export const EditContentDialog = ({ label, type, value = {}, filter, validator, onOK, className, onError }) => {
12
12
 
13
13
  const site = useContext(SiteContext);
14
14
  const [form, setForm] = useState(value)
@@ -48,7 +48,7 @@ export const EditContentDialog = ({ label, type, value = {}, filter, validator,
48
48
  const content = new Content(type, form)
49
49
  return (
50
50
  <Dialog title={title} open={true} onAction={onAction} actions={actions}>
51
- <ContentEditor content={content} onChange={change} filter={filterForm} />
51
+ <ContentEditor content={content} onChange={change} filter={filterForm} className={className}/>
52
52
  {errors.map(error => <Text use="overline" tag="div" className="error">{error}</Text>)}
53
53
  </Dialog>
54
54
  )